From 97429d8eeede120a2a78407f3573aa7a05075a89 Mon Sep 17 00:00:00 2001 From: Korey Sewell Date: Tue, 2 May 2006 20:05:16 -0400 Subject: 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 --- cpu/simple/cpu.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpu') diff --git a/cpu/simple/cpu.hh b/cpu/simple/cpu.hh index 3640348a3..af585a2e5 100644 --- a/cpu/simple/cpu.hh +++ b/cpu/simple/cpu.hh @@ -369,7 +369,7 @@ class SimpleCPU : public BaseCPU } void setFloatRegBits(const StaticInst *si, int idx, - FloatRegBits val, int width) + FloatRegBits val, int width) { int reg_idx = si->destRegIdx(idx) - TheISA::FP_Base_DepTag; cpuXC->setFloatRegBits(reg_idx, val, width); -- cgit v1.2.3