From 63a934d152024c093dc02cc94ad6b29607615af4 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Tue, 5 Jul 2011 16:52:15 -0700 Subject: ISA parser: Define operand types with a ctype directly. --- src/arch/mips/isa/operands.isa | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/arch/mips/isa/operands.isa') diff --git a/src/arch/mips/isa/operands.isa b/src/arch/mips/isa/operands.isa index 792c7e2fa..2d44bb30e 100644 --- a/src/arch/mips/isa/operands.isa +++ b/src/arch/mips/isa/operands.isa @@ -30,16 +30,16 @@ // Jaidev Patwardhan def operand_types {{ - 'sb' : ('signed int', 8), - 'ub' : ('unsigned int', 8), - 'sh' : ('signed int', 16), - 'uh' : ('unsigned int', 16), - 'sw' : ('signed int', 32), - 'uw' : ('unsigned int', 32), - 'sd' : ('signed int', 64), - 'ud' : ('unsigned int', 64), - 'sf' : ('float', 32), - 'df' : ('float', 64), + 'sb' : 'int8_t', + 'ub' : 'uint8_t', + 'sh' : 'int16_t', + 'uh' : 'uint16_t', + 'sw' : 'int32_t', + 'uw' : 'uint32_t', + 'sd' : 'int64_t', + 'ud' : 'uint64_t', + 'sf' : 'float', + 'df' : 'double' }}; def operands {{ -- cgit v1.2.3