summaryrefslogtreecommitdiffstats
path: root/newlib/libc/sys/h8300hms/crt0.S
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/sys/h8300hms/crt0.S')
-rw-r--r--newlib/libc/sys/h8300hms/crt0.S18
1 files changed, 18 insertions, 0 deletions
diff --git a/newlib/libc/sys/h8300hms/crt0.S b/newlib/libc/sys/h8300hms/crt0.S
index 2845f4324..a2137ad3a 100644
--- a/newlib/libc/sys/h8300hms/crt0.S
+++ b/newlib/libc/sys/h8300hms/crt0.S
@@ -16,8 +16,14 @@ _start:
#ifdef __ELF__
mov.l #__fini,r0
jsr @_atexit
+#ifdef __SIMULATOR__
+ jsr @0xcc
+#endif
jsr @__init
#else
+#ifdef __SIMULATOR__
+ jsr @0xcc
+#endif
jsr @___main
#endif
jsr @_main
@@ -45,8 +51,14 @@ _start:
#ifdef __ELF__
mov.l #__fini,r0
jsr @_atexit
+#ifdef __SIMULATOR__
+ jsr @0xcc
+#endif
jsr @__init
#else
+#ifdef __SIMULATOR__
+ jsr @0xcc
+#endif
jsr @___main
#endif
jsr @_main
@@ -74,8 +86,14 @@ _start:
#ifdef __ELF__
mov.l #__fini,r0
jsr @_atexit
+#ifdef __SIMULATOR__
+ jsr @0xcc
+#endif
jsr @__init
#else
+#ifdef __SIMULATOR__
+ jsr @0xcc
+#endif
jsr @___main
#endif
jsr @_main