From f16179eb213acdbf4d86a1a50a1facc56c9e660d Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Tue, 5 Jul 2011 16:48:18 -0700 Subject: 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. --- src/arch/power/isa/formats/mem.isa | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/arch/power/isa') 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; -- cgit v1.2.3