summaryrefslogtreecommitdiff
path: root/src/arch/power/isa/formats
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2011-07-05 16:48:18 -0700
committerGabe Black <gblack@eecs.umich.edu>2011-07-05 16:48:18 -0700
commitf16179eb213acdbf4d86a1a50a1facc56c9e660d (patch)
tree00212e9fdf30f0a6f86c61e91dde707c9fbe62fc /src/arch/power/isa/formats
parent9b85b4b19a1f39927ce9d4f39e5815ec6c87fbf7 (diff)
downloadgem5-f16179eb213acdbf4d86a1a50a1facc56c9e660d.tar.xz
ISA parser: Simplify operand type handling.
This change simplifies the code surrounding operand type handling and makes it depend only on the ctype that goes with each operand type. Future changes will allow defining operand types by their ctypes directly, convert the ISAs over to that style of definition, and then remove support for the old style. These changes are to make it easier to use non-builtin types like classes or structures as the type for operands.
Diffstat (limited to 'src/arch/power/isa/formats')
-rw-r--r--src/arch/power/isa/formats/mem.isa4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/power/isa/formats/mem.isa b/src/arch/power/isa/formats/mem.isa
index 519275a16..ebf0bfa21 100644
--- a/src/arch/power/isa/formats/mem.isa
+++ b/src/arch/power/isa/formats/mem.isa
@@ -125,7 +125,7 @@ def template LoadCompleteAcc {{
{
Addr EA;
Fault fault = NoFault;
- uint%(mem_acc_size)d_t val;
+ %(mem_acc_type)s val;
%(op_decl)s;
%(op_rd)s;
@@ -133,7 +133,7 @@ def template LoadCompleteAcc {{
EA = xc->getEA();
getMem(pkt, val, traceData);
- *((uint%(mem_acc_size)d_t*)&Mem) = val;
+ *((%(mem_acc_type)s*)&Mem) = val;
if (fault == NoFault) {
%(memacc_code)s;