From 7dd8ea2ea52e9559609d5e521ade8d0d69e35eaa Mon Sep 17 00:00:00 2001 From: tkchia Date: Sat, 8 Jul 2023 19:47:00 +0000 Subject: [PATCH] plat/linuxppc/emu: fix fctiw & fctiwz emulation for AArch64 host Fixes https://github.com/davidgiven/ack/issues/287 --- plat/linuxppc/emu/instructions.dat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plat/linuxppc/emu/instructions.dat b/plat/linuxppc/emu/instructions.dat index 9bd39af8e..5bf4411c6 100644 --- a/plat/linuxppc/emu/instructions.dat +++ b/plat/linuxppc/emu/instructions.dat @@ -207,5 +207,5 @@ # Floating point conversions -<63-->.....<14------>R setcr1(R, fpr(FRB)); cpu.fpr[FRT] = (uint32_t)fpr(FRB); -<63-->.....<15------>R setcr1(R, fpr(FRB)); cpu.fpr[FRT] = (uint32_t)fpr(FRB); +<63-->.....<14------>R setcr1(R, fpr(FRB)); cpu.fpr[FRT] = (uint32_t)(int32_t)fpr(FRB); +<63-->.....<15------>R setcr1(R, fpr(FRB)); cpu.fpr[FRT] = (uint32_t)(int32_t)fpr(FRB);