sim: cris: fix -Wunused-variable warnings

This commit is contained in:
Mike Frysinger 2023-12-15 22:09:52 -05:00
parent 303dc26d24
commit 1857c9f587
3 changed files with 0 additions and 6 deletions

View File

@ -58,7 +58,6 @@ MY (deliver_interrupt) (SIM_CPU *current_cpu,
unsigned int vec)
{
unsigned char entryaddr_le[4];
int was_user;
SIM_DESC sd = CPU_STATE (current_cpu);
uint32_t entryaddr;

View File

@ -443,11 +443,9 @@ hw_rv_send (struct hw *me,
void *msg,
unsigned int len_noheader)
{
hw_rv_device *rv = (hw_rv_device *) hw_data (me);
uint8_t buf[32+3];
uint8_t *bufp;
unsigned int len = len_noheader + 3;
int ret;
buf[0] = len & 255;
buf[1] = (len >> 8) & 255;
@ -1048,7 +1046,6 @@ static void
hw_rv_finish (struct hw *me)
{
hw_rv_device *rv = HW_ZALLOC (me, hw_rv_device);
int i;
const struct hw_property *mem_prop;
const struct hw_property *dummy_prop;
const struct hw_property *mbox_prop;

View File

@ -338,7 +338,6 @@ static void
cris_offset_sections (SIM_DESC sd, int offset)
{
struct bfd *abfd = STATE_PROG_BFD (sd);
asection *text;
struct offsetinfo oi;
/* Only happens for usage error. */
@ -499,7 +498,6 @@ static bfd_boolean
cris_handle_interpreter (SIM_DESC sd, struct bfd *abfd)
{
int i, n_hdrs;
bfd_byte buf[4];
char *interp = NULL;
struct bfd *ibfd;
bfd_boolean ok = FALSE;