From 0c76b79a12ef148b37962cf5dd4da574afbe517d Mon Sep 17 00:00:00 2001 From: umarcor Date: Thu, 28 Feb 2019 04:55:26 +0000 Subject: [PATCH] fix: opnd_shared.c --- core/arch/opnd_shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/arch/opnd_shared.c b/core/arch/opnd_shared.c index 80dc310f0f4..7bd608cc089 100644 --- a/core/arch/opnd_shared.c +++ b/core/arch/opnd_shared.c @@ -1885,7 +1885,7 @@ opnd_compute_address_priv(opnd_t opnd, priv_mcontext_t *mc) (index_val >> amount) | (index_val << (sizeof(reg_t) * 8 - amount)); break; case DR_SHIFT_RRX: - scaled_index = (index_val >> 1) || + scaled_index = (index_val >> 1) | (TEST(EFLAGS_C, mc->cpsr) ? (1 << (sizeof(reg_t) * 8 - 1)) : 0); break; default: scaled_index = index_val;