From: Carl Love Date: Mon, 21 Sep 2015 21:46:46 +0000 (+0000) Subject: Fix, Add support for the Power PC Program Priority Register X-Git-Tag: svn/VALGRIND_3_11_0^2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eae9d43d331f02c4812d11ce7c6e7812cd1cc254;p=thirdparty%2Fvalgrind.git Fix, Add support for the Power PC Program Priority Register 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 --- diff --git a/VEX/priv/guest_ppc_helpers.c b/VEX/priv/guest_ppc_helpers.c index 08a0753e84..a94bdad424 100644 --- a/VEX/priv/guest_ppc_helpers.c +++ b/VEX/priv/guest_ppc_helpers.c @@ -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 }