diff options
author | Korey Sewell <ksewell@umich.edu> | 2006-05-02 20:05:16 -0400 |
---|---|---|
committer | Korey Sewell <ksewell@umich.edu> | 2006-05-02 20:05:16 -0400 |
commit | 97429d8eeede120a2a78407f3573aa7a05075a89 (patch) | |
tree | c0f39da983c4064012a0b44f14f382c98a1e1704 /arch/isa_parser.py | |
parent | 2d077df1a0bbef0ec6ed4f89132c70d6d870a8d9 (diff) | |
download | gem5-97429d8eeede120a2a78407f3573aa7a05075a89.tar.xz |
Redo the FloatRegFile using unsigned integers
Edit the convert_and_round function which access FloatRegFile
arch/isa_parser.py:
recognize when we are writing a 'uint64_t' FloatReg and set the width appropriately
arch/mips/isa/decoder.isa:
Send a 'float' to the convert function instead of a unsigned word. Do this so we dont have to worry about the
bit manipulation ourselves. We can just concern ourselves with values.
Use unsigned double to get movd...
arch/mips/isa/formats/fp.isa:
float debug statement
arch/mips/isa_traits.cc:
add different versions of convert_and_round functions
arch/mips/isa_traits.hh:
Use an array of uint32_t unsigned integers to represent the Floating Point Regfile
configs/test/hello_mips:
basic FP program
cpu/simple/cpu.hh:
spacing
--HG--
extra : convert_revision : a6fca91ad6365c83025f1131d71fa1b8ee76d7bc
Diffstat (limited to 'arch/isa_parser.py')
-rwxr-xr-x | arch/isa_parser.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/isa_parser.py b/arch/isa_parser.py index 921a6fa82..83620a9f1 100755 --- a/arch/isa_parser.py +++ b/arch/isa_parser.py @@ -1251,6 +1251,9 @@ class FloatRegOperand(Operand): elif (self.ctype == 'double'): width = 64 func = 'setFloatReg' + elif (self.ctype == 'uint64_t'): + func = 'setFloatRegBits' + width = 64 else: func = 'setFloatRegBits' final_ctype = 'uint%d_t' % self.dflt_size |