aboutsummaryrefslogtreecommitdiff
path: root/sim/d10v/interp.c
diff options
context:
space:
mode:
authorJohn R. Moore <jmoore@redhat.com>2001-08-02 00:50:38 +0000
committerJohn R. Moore <jmoore@redhat.com>2001-08-02 00:50:38 +0000
commit962b3eada2c73671d2b701c75ba2e2b2c616dfff (patch)
tree4ea16c43a66c49f7bbc75210b6c8870e46e34ef4 /sim/d10v/interp.c
parent5dce30f88107c2d4f26c4d5739748481cb5be7cb (diff)
downloadgdb-962b3eada2c73671d2b701c75ba2e2b2c616dfff.zip
gdb-962b3eada2c73671d2b701c75ba2e2b2c616dfff.tar.gz
gdb-962b3eada2c73671d2b701c75ba2e2b2c616dfff.tar.bz2
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.
Diffstat (limited to 'sim/d10v/interp.c')
-rw-r--r--sim/d10v/interp.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/sim/d10v/interp.c b/sim/d10v/interp.c
index f56df31..ea1828c 100644
--- a/sim/d10v/interp.c
+++ b/sim/d10v/interp.c
@@ -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);