Hi,

Am Mittwoch, 4. Mai 2011, 10:25:20 schrieb Andrew Ashworth:
> OK, I've spent a couple hours since that last email trying to build
> openOCD. Soon as I go through one of these errors, another pops up.

Ah, GCC-4.6 user :)

> Anyone
> have any insight on this one? I'm not sure what mode does.

I guess, mode is the ARM core mode, e.g. svc, abort, user, irq, fiq (did I 
miss one?). Though I'm still wondering why it is written back.

> arm_simulator.c: In function 'arm_simulate_step_core':
> arm_simulator.c:669:18: error: variable 'mode' set but not used
> [-Werror=unused-but-set-variable]
> arm_simulator.c:725:18: error: variable 'mode' set but not used
> [-Werror=unused-but-set-variable]
> cc1: all warnings being treated as errors
> 
> in arm_simulator.c, line 725 follows:
> 
> enum arm_mode mode = sim->get_mode(sim);
> 
> for (i = 0; i < 16; i++)
> {
> if (instruction.info.load_store_multiple.register_list & (1 << i))
> bits_set++;
> }
> 
> if (instruction.info.load_store_multiple.S)
> {
> mode = ARM_MODE_USR;
> }

Also please post code with indention, otherwise it's hardly readable.

Regards,
Alexander
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to