Removed a section of code that didn't do anything, but left values in
memory. This was labeled as a hack to set r0/r1 with argc/argv.
This commit is contained in:
parent
5dce30f881
commit
962b3eada2
2 changed files with 5 additions and 19 deletions
|
@ -1,3 +1,8 @@
|
|||
2001-08-01 John R. Moore <jmoore@redhat.com>
|
||||
|
||||
* interp.c (sim_create_inferior): Removed a hack that stated
|
||||
it was setting r0/r1 with argc/argv.
|
||||
|
||||
2001-04-15 J.T. Conklin <jtc@redback.com>
|
||||
|
||||
* Makefile.in (simops.o): Add simops.h to dependency list.
|
||||
|
|
|
@ -1202,25 +1202,6 @@ sim_create_inferior (sd, abfd, argv, env)
|
|||
/* reset all state information */
|
||||
memset (&State.regs, 0, (int)&State.mem - (int)&State.regs);
|
||||
|
||||
if (argv)
|
||||
{
|
||||
/* a hack to set r0/r1 with argc/argv */
|
||||
/* some high memory that won't be overwritten by the stack soon */
|
||||
bfd_vma addr = 0x7C00;
|
||||
int p = 20;
|
||||
int i = 0;
|
||||
while (argv[i])
|
||||
{
|
||||
int size = strlen (argv[i]) + 1;
|
||||
SW (addr + 2*i, addr + p);
|
||||
sim_write (sd, addr + 0, argv[i], size);
|
||||
p += size;
|
||||
i++;
|
||||
}
|
||||
SET_GPR (0, addr);
|
||||
SET_GPR (1, i);
|
||||
}
|
||||
|
||||
/* set PC */
|
||||
if (abfd != NULL)
|
||||
start_address = bfd_get_start_address (abfd);
|
||||
|
|
Loading…
Reference in a new issue