OSDN Git Service

2006-05-09 Dave Brolley <brolley@redhat.com>
authorbrolley <brolley>
Tue, 9 May 2006 18:41:13 +0000 (18:41 +0000)
committerbrolley <brolley>
Tue, 9 May 2006 18:41:13 +0000 (18:41 +0000)
        * utils-sim.scm (-gen-decode-insn-entry): Generated code should shift
        'entire_insn' not 'base_insn'.

cgen/ChangeLog
cgen/utils-sim.scm

index 601afff..f9358e6 100644 (file)
@@ -1,5 +1,7 @@
 2006-05-09  Dave Brolley  <brolley@redhat.com>
 
+       * utils-sim.scm (-gen-decode-insn-entry): Generated code should shift
+       'entire_insn' not 'base_insn'.
        * sid-model.scm (-gen-model-class-decls): Handle the case where insn-timing
        is null.
        * sim.scm (-gen-arch-model-decls): Likewise.
index 7a8ae82..af4622d 100644 (file)
@@ -1,5 +1,5 @@
 ; Generic simulator application utilities.
-; Copyright (C) 2000, 2005 Red Hat, Inc.
+; Copyright (C) 2000, 2005, 2006 Red Hat, Inc.
 ; This file is part of CGEN.
 ; See file COPYING.CGEN for details.
 
                     (if (and (equal? APPLICATION 'SID-SIMULATOR)
                              (> (state-base-insn-bitsize) (insn-length insn)))
                         (string-append
-                         indent "    entire_insn = base_insn >> "
+                         indent "    entire_insn = entire_insn >> "
                          (number->string (- (state-base-insn-bitsize) (insn-length insn)))
                          ";\n")
                         "")