From b528ddeebcec71c370d5ba9c0c18e9bd93732b83 Mon Sep 17 00:00:00 2001 From: Dani Messerman Date: Wed, 6 May 2015 21:59:05 +0300 Subject: [PATCH] Enabled pop --- src/binary_translation/Instructions/Ldr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/binary_translation/Instructions/Ldr.cpp b/src/binary_translation/Instructions/Ldr.cpp index d1129bc24..79f188e15 100644 --- a/src/binary_translation/Instructions/Ldr.cpp +++ b/src/binary_translation/Instructions/Ldr.cpp @@ -22,7 +22,7 @@ bool Ldr::Decode() form = Form::Reg; if (!P && W) return false; // SEE LDRT; - if (rn == Register::SP && !P && U && !W && imm12 == 4) return false; // SEE POP; + //if (rn == Register::SP && !P && U && !W && imm12 == 4) return false; // SEE POP; if ((!P || W) && rn == rt) return false; // UNPREDICTABLE; return true; @@ -32,7 +32,7 @@ bool Ldr::Decode() { form = Form::MultiReg; - if (W && rn == Register::SP && register_list.size() > 1) return false; // SEE POP (ARM); + //if (W && rn == Register::SP && register_list.size() > 1) return false; // SEE POP (ARM); if (rn == Register::PC || register_list.size() < 1) return false; // UNPREDICTABLE; if (W && register_list[(u32)rn]) return false; // UNPREDICTABLE;