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.
; 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")
"")