From 5401ff6c786eb7968191892b41a86bd3522d5f67 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 3 Jan 2021 11:14:43 -0500 Subject: [PATCH] Proactively fixes li sign extension. --- Processors/Decoders/PowerPC/PowerPC.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Processors/Decoders/PowerPC/PowerPC.hpp b/Processors/Decoders/PowerPC/PowerPC.hpp index b73ddd5ef..9a9bf33f6 100644 --- a/Processors/Decoders/PowerPC/PowerPC.hpp +++ b/Processors/Decoders/PowerPC/PowerPC.hpp @@ -178,7 +178,7 @@ struct Instruction { 0x0000'0000, 0xfc00'0000 }; - const uint32_t value = (opcode & 0x03ff'fffc) | extensions[(opcode >> 26) & 1]; + const uint32_t value = (opcode & 0x03ff'fffc) | extensions[(opcode >> 25) & 1]; return int32_t(value); }