* weird macro names is to avoid e.g. #define INSOPCODE OPCODE being
* substituted as "#define INSadd add" during the awk/sed processing.
*/
+
#define INSN NAME
#define INCLUDEFILE "insns/NAME.h"
#define INSNCODE OPCODE
{
int xlen = 32;
reg_t npc = sext_xlen(pc + insn_length(OPCODE));
- insn_bits_t bits = s_insn.bits();
#include "insns/NAME.h"
- trace_opcode(p, OPCODE, s_insn);
+ trace_opcode(p, OPCODE, insn);
return npc;
}
-reg_t rv64_NAME(processor_t* p, insn_t s_insn, reg_t pc)
+reg_t rv64_NAME(processor_t* p, insn_t insn, reg_t pc)
{
int xlen = 64;
reg_t npc = sext_xlen(pc + insn_length(OPCODE));
- insn_bits_t bits = s_insn.bits();
- insn_t insn(bits);
#include "insns/NAME.h"
- trace_opcode(p, OPCODE, s_insn);
+ trace_opcode(p, OPCODE, insn);
return npc;
}
#endif