Incorrect test for zero-r0 code gen.
authorAndrew Cagney <cagney@redhat.com>
Fri, 23 May 1997 02:01:04 +0000 (02:01 +0000)
committerAndrew Cagney <cagney@redhat.com>
Fri, 23 May 1997 02:01:04 +0000 (02:01 +0000)
sim/igen/ChangeLog
sim/igen/gen-semantics.c

index a9f790a383cdfb5cb889ce47a9376df5710e9365..5ca4d0e2d42f34e38d3359e0c5184a009c894f03 100644 (file)
@@ -1,3 +1,13 @@
+Fri May 23 12:01:08 1997  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * gen-semantics.c (print_semantic_body): Incorrect test for
+       zero-r0 code.
+
+Fri May 16 14:32:31 1997  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * gen-semantics.c (print_semantic_body): Use common sim-engine
+       interface.
+
 Fri May 16 11:48:30 1997  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * gen-semantics.c (print_semantic_body): Add code to clear r0.
index 35b247fe38e79effe19bf9ea3898482a5a5fca1d..b249e38eaffb18d459808574498bfbc23bda3929 100644 (file)
@@ -176,7 +176,7 @@ print_semantic_body(lf *file,
   /* Architecture expects r0 to be zero.  Instead of having to check
      every read to see if it is refering to r0 just zap the r0
      register */
-  if ((code & generate_with_semantic_delayed_branch))
+  if ((code & generate_with_zero_r0))
     {
       lf_printf (file, "\n");
       lf_printf (file, "GPR(0) = 0;\n");
@@ -201,7 +201,7 @@ print_semantic_body(lf *file,
   else {
     /* abort so it is implemented now */
     table_entry_print_cpp_line_nr(file, instruction->file_entry);
-    lf_printf(file, "engine_error (SD, CPU, cia, \"%s:%d:0x%%08lx:%%s unimplemented\\n\",\n",
+    lf_printf(file, "sim_engine_abort (SD, CPU, cia, \"%s:%d:0x%%08lx:%%s unimplemented\\n\",\n",
              filter_filename(instruction->file_entry->file_name),
              instruction->file_entry->line_nr);
     if ((code & generate_with_semantic_delayed_branch))