OSDN Git Service

* cleanup
authorfche <fche>
Fri, 13 Oct 2000 11:21:56 +0000 (11:21 +0000)
committerfche <fche>
Fri, 13 Oct 2000 11:21:56 +0000 (11:21 +0000)
2000-10-13  matthew green  <mrg@cygnus.com>

* utils-cgen.scm (get-ifetch): Move from here ...
* sim.scm (get-ifetch): ... to here.

cgen/ChangeLog
cgen/sim.scm
cgen/utils-cgen.scm

index 77051d8..daaf379 100644 (file)
@@ -1,3 +1,8 @@
+2000-10-13  matthew green  <mrg@cygnus.com>
+
+       * utils-cgen.scm (get-ifetch): Move from here ...
+       * sim.scm (get-ifetch): ... to here.
+
 2000-10-06  Dave Brolley  <brolley@redhat.com>
 
        * utils-gen.scm (-gen-ifld-extract-base): Compute start position as
index 9907410..ec38976 100644 (file)
   (string-append c-cpu-macro " (" sym ")")
 )
 \f
+
+; Return C code to fetch a value from instruction memory.
+; PC-VAR is the C expression containing the address of the start of the
+; instruction.
+; ??? Aligned/unaligned support?
+
+(define (gen-ifetch pc-var bitoffset bitsize)
+  (string-append "GETIMEM"
+                (case bitsize
+                  ((8) "UQI")
+                  ((16) "UHI")
+                  ((32) "USI")
+                  (else (error "bad bitsize argument to gen-ifetch" bitsize)))
+                " (current_cpu, "
+                pc-var " + " (number->string (quotient bitoffset 8))
+                ")")
+)
+
 ; Instruction field support code.
 
 ; Return a <c-expr> object of the value of an ifield.
index 5d3f24c..240cc61 100644 (file)
    ";} while (0)\n")
 )
 
-; Return C code to fetch a value from instruction memory.
-; PC-VAR is the C expression containing the address of the start of the
-; instruction.
-; ??? Aligned/unaligned support?
-
-(define (gen-ifetch pc-var bitoffset bitsize)
-  (string-append "GETIMEM"
-                (case bitsize
-                  ((8) "UQI")
-                  ((16) "UHI")
-                  ((32) "USI")
-                  (else (error "bad bitsize argument to gen-ifetch" bitsize)))
-                " (current_cpu, "
-                pc-var " + " (number->string (quotient bitoffset 8))
-                ")")
-)
 \f
 ; Called before loading the .cpu file to initialize.