summaryrefslogtreecommitdiff
path: root/src/arch/arm/isa/formats/aarch64.isa
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2017-07-27 15:09:09 +0100
committerAndreas Sandberg <andreas.sandberg@arm.com>2017-08-01 18:27:06 +0000
commit694005b536c4b35963416e442c5dc0e5a946dc55 (patch)
treea0bc58ec053902ec66585715301d33a2f53dbdf3 /src/arch/arm/isa/formats/aarch64.isa
parentf2d0adf60fe8dd43dd5f8f5bed0e4fe85794c1d0 (diff)
downloadgem5-694005b536c4b35963416e442c5dc0e5a946dc55.tar.xz
arch-arm: Use named constants for m5op instructions
Change-Id: I544519c4f87e50cc02af29cbb3edc31ecf726e8e Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com> Reviewed-on: https://gem5-review.googlesource.com/4263 Reviewed-by: Gabe Black <gabeblack@google.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/arch/arm/isa/formats/aarch64.isa')
-rw-r--r--src/arch/arm/isa/formats/aarch64.isa52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/arch/arm/isa/formats/aarch64.isa b/src/arch/arm/isa/formats/aarch64.isa
index 1252cdf25..38e5b15a0 100644
--- a/src/arch/arm/isa/formats/aarch64.isa
+++ b/src/arch/arm/isa/formats/aarch64.isa
@@ -2002,32 +2002,32 @@ namespace Aarch64
{
const uint32_t m5func = bits(machInst, 23, 16);
switch (m5func) {
- case 0x00: return new Arm(machInst);
- case 0x01: return new Quiesce(machInst);
- case 0x02: return new QuiesceNs64(machInst);
- case 0x03: return new QuiesceCycles64(machInst);
- case 0x04: return new QuiesceTime64(machInst);
- case 0x07: return new Rpns64(machInst);
- case 0x09: return new WakeCPU64(machInst);
- case 0x10: return new Deprecated_ivlb(machInst);
- case 0x11: return new Deprecated_ivle(machInst);
- case 0x20: return new Deprecated_exit (machInst);
- case 0x21: return new M5exit64(machInst);
- case 0x22: return new M5fail64(machInst);
- case 0x31: return new Loadsymbol(machInst);
- case 0x30: return new Initparam64(machInst);
- case 0x40: return new Resetstats64(machInst);
- case 0x41: return new Dumpstats64(machInst);
- case 0x42: return new Dumpresetstats64(machInst);
- case 0x43: return new M5checkpoint64(machInst);
- case 0x4F: return new M5writefile64(machInst);
- case 0x50: return new M5readfile64(machInst);
- case 0x51: return new M5break(machInst);
- case 0x52: return new M5switchcpu(machInst);
- case 0x53: return new M5addsymbol64(machInst);
- case 0x54: return new M5panic(machInst);
- case 0x5a: return new M5workbegin64(machInst);
- case 0x5b: return new M5workend64(machInst);
+ case M5OP_ARM: return new Arm(machInst);
+ case M5OP_QUIESCE: return new Quiesce(machInst);
+ case M5OP_QUIESCE_NS: return new QuiesceNs64(machInst);
+ case M5OP_QUIESCE_CYCLE: return new QuiesceCycles64(machInst);
+ case M5OP_QUIESCE_TIME: return new QuiesceTime64(machInst);
+ case M5OP_RPNS: return new Rpns64(machInst);
+ case M5OP_WAKE_CPU: return new WakeCPU64(machInst);
+ case M5OP_DEPRECATED1: return new Deprecated_ivlb(machInst);
+ case M5OP_DEPRECATED2: return new Deprecated_ivle(machInst);
+ case M5OP_DEPRECATED3: return new Deprecated_exit (machInst);
+ case M5OP_EXIT: return new M5exit64(machInst);
+ case M5OP_FAIL: return new M5fail64(machInst);
+ case M5OP_LOAD_SYMBOL: return new Loadsymbol(machInst);
+ case M5OP_INIT_PARAM: return new Initparam64(machInst);
+ case M5OP_RESET_STATS: return new Resetstats64(machInst);
+ case M5OP_DUMP_STATS: return new Dumpstats64(machInst);
+ case M5OP_DUMP_RESET_STATS: return new Dumpresetstats64(machInst);
+ case M5OP_CHECKPOINT: return new M5checkpoint64(machInst);
+ case M5OP_WRITE_FILE: return new M5writefile64(machInst);
+ case M5OP_READ_FILE: return new M5readfile64(machInst);
+ case M5OP_DEBUG_BREAK: return new M5break(machInst);
+ case M5OP_SWITCH_CPU: return new M5switchcpu(machInst);
+ case M5OP_ADD_SYMBOL: return new M5addsymbol64(machInst);
+ case M5OP_PANIC: return new M5panic(machInst);
+ case M5OP_WORK_BEGIN: return new M5workbegin64(machInst);
+ case M5OP_WORK_END: return new M5workend64(machInst);
default: return new Unknown64(machInst);
}
}