]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix, Add support for the Power PC Program Priority Register
authorCarl Love <cel@us.ibm.com>
Mon, 21 Sep 2015 21:46:46 +0000 (21:46 +0000)
committerCarl Love <cel@us.ibm.com>
Mon, 21 Sep 2015 21:46:46 +0000 (21:46 +0000)
Commit r3189 had a typo in it.  In function LibVEX_GuestPPC64_initialise()
the value of  vex_state->guest_PSPB is initialized to 0x0.  The intention was
for it to be initialized to 0x100.  This commit fixes the typo.

The original commit message:

  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.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3194

VEX/priv/guest_ppc_helpers.c

index 08a0753e84d5461df5c11d8724f28f0f547d5724..a94bdad4246153308c26d2a540c855e7bcd8a8be 100644 (file)
@@ -694,7 +694,7 @@ void LibVEX_GuestPPC64_initialise ( /*OUT*/VexGuestPPC64State* vex_state )
    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
+   vex_state->guest_PSPB = 0x100;  // an arbitrary non-zero value to start with
 }