Use new NaN discipline
[riscv-isa-sim.git] / hwacha / insn_template_hwacha_ut.cc
index 79e7c2f0846741130a4428d644df531b63cb4f45..7f5dc0ebb515dd9fe6cd8bcd284bc8a74ae2f670 100644 (file)
@@ -1,19 +1,10 @@
 // See LICENSE for license details.
-
-#include "config.h"
-#include "processor.h"
-#include "mmu.h"
-#include "softfloat.h"
-#include "platform.h" // softfloat isNaNF32UI, etc.
-#include "internals.h" // ditto
-#include "hwacha.h"
-#include "decode_hwacha_ut.h"
-#include <assert.h>
+#include "insn_template_hwacha_ut.h"
 
 reg_t hwacha_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));
   hwacha_t* h = static_cast<hwacha_t*>(p->get_extension());
   do {
     #include "insns_ut/NAME.h"