Add support for v4 SystemMode.
This commit is contained in:
parent
ac73857d80
commit
c1a72ffdd6
11 changed files with 159 additions and 57 deletions
|
@ -205,13 +205,11 @@ sim_create_inferior (sd, abfd, argv, env)
|
|||
else
|
||||
ARMul_SetPC (state, 0); /* ??? */
|
||||
|
||||
#if 1 /* JGS */
|
||||
/* We explicitly select a processor capable of supporting the ARM
|
||||
32bit mode, and then we force the simulated CPU into the 32bit
|
||||
User mode: */
|
||||
32bit mode. JGS */
|
||||
ARMul_SelectProcessor (state, ARM600);
|
||||
/* And then we force the simulated CPU into the 32bit User mode. */
|
||||
ARMul_SetCPSR (state, USER32MODE);
|
||||
#endif
|
||||
|
||||
if (argv != NULL)
|
||||
{
|
||||
|
@ -359,7 +357,7 @@ sim_open (kind, ptr, abfd, argv)
|
|||
{
|
||||
sim_kind = kind;
|
||||
if (myname) free (myname);
|
||||
myname = xstrdup (argv[0]);
|
||||
myname = (char *) xstrdup (argv[0]);
|
||||
sim_callback = ptr;
|
||||
|
||||
/* Decide upon the endian-ness of the processor.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue