summaryrefslogtreecommitdiff
path: root/sim/d10v
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
commit97e730e1e2187d6b33f40f4316013583e54f94f1 (patch)
treec812f4632c463a6cecb5a907bc9c102a2bf61d34 /sim/d10v
parent84797df2c3da757bcba37dc70122fce81a8832a8 (diff)
downloadgdb-97e730e1e2187d6b33f40f4316013583e54f94f1.tar.gz
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')
-rw-r--r--sim/d10v/ChangeLog5
-rw-r--r--sim/d10v/interp.c19
2 files changed, 5 insertions, 19 deletions
diff --git a/sim/d10v/ChangeLog b/sim/d10v/ChangeLog
index 75167f929aa..5f7ad2e09f1 100644
--- a/sim/d10v/ChangeLog
+++ b/sim/d10v/ChangeLog
@@ -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.
diff --git a/sim/d10v/interp.c b/sim/d10v/interp.c
index f56df31c298..ea1828c3e0e 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);