10abe1495a5decfc38e2b54c727c298a5665dad1
1 #ifndef _RISCV_PROCESSOR_H
2 #define _RISCV_PROCESSOR_H
17 processor_t(sim_t
* _sim
, char* _mem
, size_t _memsz
);
19 void init(uint32_t _id
, icsim_t
* defualt_icache
, icsim_t
* default_dcache
);
20 void step(size_t n
, bool noisy
);
30 // privileged control registers
47 // unprivileged control registers
50 // # of bits in an XPR (32 or 64). (redundant with sr)
61 void take_interrupt();
62 void set_sr(uint32_t val
);
63 void set_fsr(uint32_t val
);
64 void take_trap(trap_t t
, bool noisy
);
65 void disasm(insn_t insn
, reg_t pc
);
69 void setvl(int vlapp
);
72 uint32_t vecbanks_count
;
81 processor_t
* uts
[MAX_UTS
];
91 #include "dispatch_decl.h"