From a6cc53e67a8c8b67f2146f15cd4046ef8e2d60b3 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sat, 4 Sep 2021 19:38:56 +0000 Subject: [PATCH] fixedtrap: switch tw to XLEN --- openpower/isa/fixedtrap.mdwn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openpower/isa/fixedtrap.mdwn b/openpower/isa/fixedtrap.mdwn index 52f4d373..9e9df579 100644 --- a/openpower/isa/fixedtrap.mdwn +++ b/openpower/isa/fixedtrap.mdwn @@ -34,8 +34,8 @@ X-Form Pseudo-code: - a <- EXTS((RA)[32:63]) - b <- EXTS((RB)[32:63]) + a <- EXTS((RA)[XLEN/2:XLEN-1]) + b <- EXTS((RB)[XLEN/2:XLEN-1]) if (a < b) & TO[0] then TRAP if (a > b) & TO[1] then TRAP if (a = b) & TO[2] then TRAP -- 2.30.2