|
From: Matthias S. <zz...@ge...> - 2015-09-18 16:16:01
|
Am 17.09.2015 um 00:26 schrieb sv...@va...: > Author: carll > Date: Wed Sep 16 23:26:59 2015 > New Revision: 3189 > > Log: > Add support for the Power PC Program Priority Register > > Added the Program Priority Register (PPR), support to read and write it > via the mfspr and mtspr instructions as well as the special OR instruction > No Op instructions. The setting of the PPR is dependent on the value in > the Problem State Priority Boost register. Basic support for this register > was added. Not all of the PSPB register functionality was added. > > This patch fixes bugzilla 352769. > > Modified: > trunk/priv/guest_ppc_helpers.c > trunk/priv/guest_ppc_toIR.c > trunk/pub/libvex_guest_ppc32.h > trunk/pub/libvex_guest_ppc64.h > > Modified: trunk/priv/guest_ppc_helpers.c > ============================================================================== > --- trunk/priv/guest_ppc_helpers.c (original) > +++ trunk/priv/guest_ppc_helpers.c Wed Sep 16 23:26:59 2015 > @@ -521,6 +521,8 @@ > > vex_state->guest_IP_AT_SYSCALL = 0; > vex_state->guest_SPRG3_RO = 0; > + vex_state->guest_PPR = 0x4ULL << 50; // medium priority > + vex_state->guest_PSPB = 0x100; // an arbitrary non-zero value to start with > > vex_state->padding1 = 0; > vex_state->padding2 = 0; > @@ -691,6 +693,8 @@ > vex_state->guest_TFHAR = 0; > vex_state->guest_TFIAR = 0; > vex_state->guest_TEXASR = 0; > + vex_state->guest_PPR = 0x4ULL << 50; // medium priority > + vex_state->guest_PSPB = 0x00; // an arbitrary non-zero value to start with So here is some kind of inconsistency. Either the value or the comment are wrong. Regards Matthias |