From ba3d6da0c856541bdf33a0775282548a85ee436f Mon Sep 17 00:00:00 2001 From: MerryMage Date: Fri, 26 Jan 2018 02:03:16 +0000 Subject: [PATCH] load_store_register_unprivileged: bug: LDTRSW --- .../A64/translate/impl/load_store_register_unprivileged.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/A64/translate/impl/load_store_register_unprivileged.cpp b/src/frontend/A64/translate/impl/load_store_register_unprivileged.cpp index df90f7f3..414d0983 100644 --- a/src/frontend/A64/translate/impl/load_store_register_unprivileged.cpp +++ b/src/frontend/A64/translate/impl/load_store_register_unprivileged.cpp @@ -132,7 +132,7 @@ bool TranslatorVisitor::LDTRSH(Imm<2> opc, Imm<9> imm9, Reg Rn, Reg Rt) { } bool TranslatorVisitor::LDTRSW(Imm<9> imm9, Reg Rn, Reg Rt) { - const u64 offset = imm9.ZeroExtend(); + const u64 offset = imm9.SignExtend(); AccType acctype = AccType::UNPRIV; IR::U64 address;