projects
/
riscv-isa-sim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b0d56d
)
fix annoying printf warning on fp compiles
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Mon, 15 Oct 2018 11:55:38 +0000
(12:55 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Mon, 15 Oct 2018 11:55:38 +0000
(12:55 +0100)
riscv/insn_template_sv.cc
patch
|
blob
|
history
diff --git
a/riscv/insn_template_sv.cc
b/riscv/insn_template_sv.cc
index 07be01766fb33f5f8611d1f88d142169d55660b8..118c97261582c93e4e8801c77c48e10c941798d8 100644
(file)
--- a/
riscv/insn_template_sv.cc
+++ b/
riscv/insn_template_sv.cc
@@
-223,10
+223,10
@@
reg_t sv_proc_t::FN(processor_t* p, insn_t s_insn, reg_t pc)
dest_pred & (1<<voffs), READ_REG(insn._rd()));
#endif
#if defined(USING_REG_FRD)
- fprintf(stderr, "reg %s %x vloop %d vlen %d stop %d pred %lx rd%
lx
\n",
+ fprintf(stderr, "reg %s %x vloop %d vlen %d stop %d pred %lx rd%
g
\n",
xstr(INSN), INSNCODE, voffs, vlen, insn.stop_vloop(),
dest_pred & (1<<voffs),
- (
READ_FREG(insn._rd()))
);
+ (
double)(READ_FREG(insn._rd())).v[0]
);
#endif
}
if (insn.stop_vloop())