mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-05 22:43:39 +00:00
Move error strings out of header, to prevent unused warning
This commit is contained in:
parent
51494ec10d
commit
047c9e3853
2 changed files with 6 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue