From c29249806e1d83d5758f77d6deaa9011e64769ec Mon Sep 17 00:00:00 2001 From: Sandipan Das Date: Sat, 6 Feb 2021 17:21:49 +0530 Subject: [PATCH] arch-power: Add fields for XS form instructions This introduces the extended opcode field for XS form instructions and the sh field which is concatenated with the SH field for specifying a shift amount for doubleword operands. Change-Id: I8f7cb3a2fda33b5b0076ffe12ffebeb5ec1c33a6 Signed-off-by: Sandipan Das --- src/arch/power/isa/bitfields.isa | 1 + src/arch/power/types.hh | 1 + 2 files changed, 2 insertions(+) diff --git a/src/arch/power/isa/bitfields.isa b/src/arch/power/isa/bitfields.isa index 8783081e2..dfe4683dc 100644 --- a/src/arch/power/isa/bitfields.isa +++ b/src/arch/power/isa/bitfields.isa @@ -44,6 +44,7 @@ def bitfield XFL_XO <10:1>; def bitfield XFX_XO <10:1>; def bitfield XL_XO <10:1>; def bitfield XO_XO <9:1>; +def bitfield XS_XO <10:2>; // Register fields def bitfield RA <20:16>; diff --git a/src/arch/power/types.hh b/src/arch/power/types.hh index 4ce186494..8ba09f23b 100644 --- a/src/arch/power/types.hh +++ b/src/arch/power/types.hh @@ -46,6 +46,7 @@ BitUnion32(ExtMachInst) // Shifts and masks Bitfield<15, 11> sh; + Bitfield<1> shn; Bitfield<10, 6> mb; Bitfield< 5, 1> me; -- 2.30.2