Tim, the very first CogVMSimulator example has these options, including "ISA ARMv5" "ISA IA32":
CogVMSimulator newWithOptions: #(Cogit StackToRegisterMappingCogit "SimpleStackBasedCogit" ObjectMemory Spur32BitCoMemoryManager "ISA ARMv5" "ISA IA32").
I am running the ARM simulation, right now?
Thanks, Robert
On 10/18/2015 09:04 AM, Tim Olson wrote:
On Oct 18, 2015, at 5:26 AM, Robert Withers <robert.w.withers@gmail.com mailto:robert.w.withers@gmail.com> wrote:
I found some support code for the ARM plugin, in the processors directory. Following the instructions, I noticed there was no step to run make in the sim/common directory, though it has a Makefile and contains .c files.
I carried on and when running make in sim/arm I received these errors multiple times:
../../include/libiberty.h:92:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PARAMS’ wrapper.c:135:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘VPARAMS’
Any help resolving this is received with gratitude.
I ran into this problem when getting this to build on my 64-bit Ubuntu system. The problem is that the system’s ansidecl.h is incompatible with the one that should be used (in include/ansidecl.h in the ARM gdb directory). I fixed it by moving the include of ansidecl.h first before any other includes in the sim/arm/wrapper.c file:
/* TAO -- include local version of ansidecl.h first to ensure it is used instead of the system's version */ #include "ansidecl.h" #include "config.h" #include <stdio.h> #include <stdarg.h> #include <string.h>
— tim