Blame SOURCES/runtime-77269-mono-ppc64le-opcheckthis.patch

ccd8ec
From f163003da28cd01866b15233116d5efd53b1a2ef Mon Sep 17 00:00:00 2001
ccd8ec
From: Sapana Khemkar <sapana.khemkar@ibm.com>
ccd8ec
Date: Thu, 13 Oct 2022 07:45:23 +0000
ccd8ec
Subject: [PATCH] use byte load instruction in OP_CHECK_THIS instead of double
ccd8ec
 word instruction
ccd8ec
ccd8ec
---
ccd8ec
 src/runtime/src/mono/mono/mini/mini-ppc.c | 2 +-
ccd8ec
 1 file changed, 1 insertion(+), 1 deletion(-)
ccd8ec
ccd8ec
diff --git a/src/runtime/src/mono/mono/mini/mini-ppc.c b/src/runtime/src/mono/mono/mini/mini-ppc.c
ccd8ec
index bc97b497af93a..a2d8c5a714e3b 100644
ccd8ec
--- a/src/runtime/src/mono/mono/mini/mini-ppc.c
ccd8ec
+++ b/src/runtime/src/mono/mono/mini/mini-ppc.c
ccd8ec
@@ -3837,7 +3837,7 @@ mono_arch_output_basic_block (MonoCompile *cfg, MonoBasicBlock *bb)
ccd8ec
 		}
ccd8ec
 		case OP_CHECK_THIS:
ccd8ec
 			/* ensure ins->sreg1 is not NULL */
ccd8ec
-			ppc_ldptr (code, ppc_r0, 0, ins->sreg1);
ccd8ec
+			ppc_lbz (code, ppc_r0, 0, ins->sreg1);
ccd8ec
 			break;
ccd8ec
 		case OP_ARGLIST: {
ccd8ec
 			long cookie_offset = cfg->sig_cookie + cfg->stack_usage;