From: Andreas Arnez Date: Thu, 8 Aug 2024 12:56:50 +0000 (+0200) Subject: s390x: Fix disassembly of locfh/locfhr, update S390_MAX_MNEMONIC_LEN X-Git-Tag: VALGRIND_3_24_0~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67a2bb759a7c9c76fd6aa142bdb6fe342a5998e2;p=thirdparty%2Fvalgrind.git s390x: Fix disassembly of locfh/locfhr, update S390_MAX_MNEMONIC_LEN The length of the "longest mnemonic" for the s390x disassembler is currently defined in s390_defs.h to be 8 characters, where in fact it should be 9. Update the constant to reflect that. Also fix the disassembly of the instructions locfh and locfhr, changing them from their current wrong representations `locgh' and `locghr'. --- diff --git a/VEX/priv/s390_defs.h b/VEX/priv/s390_defs.h index 80d733606..da5113f7d 100644 --- a/VEX/priv/s390_defs.h +++ b/VEX/priv/s390_defs.h @@ -166,8 +166,8 @@ typedef enum #define S390_PPNO_MAX_SIZE_SHA512_GEN 64 -/* The length of the longest mnemonic: locgrnhe */ -#define S390_MAX_MNEMONIC_LEN 8 +/* The length of the longest mnemonic: locfhrnhe */ +#define S390_MAX_MNEMONIC_LEN 9 /*---------------------------------------------------------------*/ diff --git a/VEX/priv/s390_disasm.c b/VEX/priv/s390_disasm.c index 16b9560cb..a1cf61bb4 100644 --- a/VEX/priv/s390_disasm.c +++ b/VEX/priv/s390_disasm.c @@ -251,8 +251,8 @@ cls_operand(Int kind, UInt mask) case S390_XMNM_STOC: prefix = "stoc"; break; case S390_XMNM_STOCG: prefix = "stocg"; break; case S390_XMNM_STOCFH: prefix = "stocfh"; break; - case S390_XMNM_LOCFH: prefix = "locgh"; break; - case S390_XMNM_LOCFHR: prefix = "locghr"; break; + case S390_XMNM_LOCFH: prefix = "locfh"; break; + case S390_XMNM_LOCFHR: prefix = "locfhr"; break; case S390_XMNM_LOCHI: prefix = "lochi"; break; case S390_XMNM_LOCGHI: prefix = "locghi"; break; case S390_XMNM_LOCHHI: prefix = "lochhi"; break;