diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-02-08 00:13:48 -0800 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-02-08 00:13:48 -0800 |
commit | e671e751982cfa065bb6430a0b5b33cd5f9ddfec (patch) | |
tree | de3391e3c20d1c8d6d8bafd5f4b8fb01b3f7464f /riscv/insn_template.cc | |
parent | d8022e9eda1d83211b42c523483f6d9f7da3cefa (diff) | |
download | spike-e671e751982cfa065bb6430a0b5b33cd5f9ddfec.zip spike-e671e751982cfa065bb6430a0b5b33cd5f9ddfec.tar.gz spike-e671e751982cfa065bb6430a0b5b33cd5f9ddfec.tar.bz2 |
Use xlen, not xprlen, to refer to x-register width
Diffstat (limited to 'riscv/insn_template.cc')
-rw-r--r-- | riscv/insn_template.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/riscv/insn_template.cc b/riscv/insn_template.cc index d2c0fce..35f67a0 100644 --- a/riscv/insn_template.cc +++ b/riscv/insn_template.cc @@ -4,16 +4,16 @@ reg_t rv32_NAME(processor_t* p, insn_t insn, reg_t pc) { - int xprlen = 32; - reg_t npc = sext_xprlen(pc + insn_length(OPCODE)); + int xlen = 32; + reg_t npc = sext_xlen(pc + insn_length(OPCODE)); #include "insns/NAME.h" return npc; } reg_t rv64_NAME(processor_t* p, insn_t insn, reg_t pc) { - int xprlen = 64; - reg_t npc = sext_xprlen(pc + insn_length(OPCODE)); + int xlen = 64; + reg_t npc = sext_xlen(pc + insn_length(OPCODE)); #include "insns/NAME.h" return npc; } |