Move error strings out of header, to prevent unused warning

This commit is contained in:
Toby Jaffey 2025-12-06 21:35:00 +00:00
parent 51494ec10d
commit 047c9e3853
2 changed files with 6 additions and 6 deletions

View file

@ -9,6 +9,12 @@
#include "mini-rv32ima.h"
#define X(name) #name,
static const char *errNames[] = {
LIST_OF_UVM32_ERRS
};
#undef X
static void setup_err_evt(uvm32_state_t *vmst, uvm32_evt_t *evt) {
evt->typ = UVM32_EVT_ERR;
evt->data.err.errcode = vmst->err;

View file

@ -85,12 +85,6 @@ void uvm32_HandleOtherCSRWrite(void *userdata, uint16_t csrno, uint32_t value);
#endif
#include "mini-rv32ima.h"
#define X(name) #name,
static const char *errNames[] = {
LIST_OF_UVM32_ERRS
};
#undef X
typedef enum {
UVM32_STATUS_PAUSED,
UVM32_STATUS_RUNNING,