From 3bf5637781631d21c59c171a8bf05eb540c02927 Mon Sep 17 00:00:00 2001 From: Sandipan Das Date: Thu, 7 Jun 2018 18:50:10 +0530 Subject: [PATCH] arch-power: Add fields for MD and MDS form instructions This introduces the extended opcode fields and the fields mb and me for MD and MDS form instructions. Change-Id: I2c3366794ed42f5d31ba1d69e360c0ac67c74e06 Signed-off-by: Sandipan Das --- src/arch/power/isa/bitfields.isa | 2 ++ src/arch/power/types.hh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/arch/power/isa/bitfields.isa b/src/arch/power/isa/bitfields.isa index 0430f30dc..f37567d47 100644 --- a/src/arch/power/isa/bitfields.isa +++ b/src/arch/power/isa/bitfields.isa @@ -38,6 +38,8 @@ def bitfield PO <31:26>; def bitfield A_XO <5:1>; def bitfield DS_XO <1:0>; def bitfield DX_XO <5:1>; +def bitfield MD_XO <4:2>; +def bitfield MDS_XO <4:1>; def bitfield VA_XO <5:0>; def bitfield X_XO <10:1>; def bitfield XFL_XO <10:1>; diff --git a/src/arch/power/types.hh b/src/arch/power/types.hh index 2c8d7de9a..a805a4728 100644 --- a/src/arch/power/types.hh +++ b/src/arch/power/types.hh @@ -48,7 +48,9 @@ BitUnion32(ExtMachInst) Bitfield<15, 11> sh; Bitfield<1> shn; Bitfield<10, 6> mb; + Bitfield<5> mbn; Bitfield< 5, 1> me; + Bitfield<5> men; // Immediate fields Bitfield<15, 0> si; -- 2.30.2