Cleanups.
committer: mfx <mfx> 1044346308 +0000
This commit is contained in:
@@ -223,6 +223,7 @@ static unsigned OP_MOVEQ(int value, int d_reg)
|
|||||||
|
|
||||||
static unsigned OP_SUBQ_L(int value, int d_reg)
|
static unsigned OP_SUBQ_L(int value, int d_reg)
|
||||||
{
|
{
|
||||||
|
// subq.l #X,d0
|
||||||
assert(value >= 1 && value <= 8);
|
assert(value >= 1 && value <= 8);
|
||||||
assert(d_reg >= REG_D0 && d_reg <= REG_D7);
|
assert(d_reg >= REG_D0 && d_reg <= REG_D7);
|
||||||
return 0x5180 | ((value & 7) << 9) | (d_reg & 7);
|
return 0x5180 | ((value & 7) << 9) | (d_reg & 7);
|
||||||
@@ -230,6 +231,7 @@ static unsigned OP_SUBQ_L(int value, int d_reg)
|
|||||||
|
|
||||||
static unsigned OP_SUBQ_W(int value, int d_reg)
|
static unsigned OP_SUBQ_W(int value, int d_reg)
|
||||||
{
|
{
|
||||||
|
// subq.w #X,d0
|
||||||
assert(value >= 1 && value <= 8);
|
assert(value >= 1 && value <= 8);
|
||||||
assert(d_reg >= REG_D0 && d_reg <= REG_D7);
|
assert(d_reg >= REG_D0 && d_reg <= REG_D7);
|
||||||
return 0x5140 | ((value & 7) << 9) | (d_reg & 7);
|
return 0x5140 | ((value & 7) << 9) | (d_reg & 7);
|
||||||
|
|||||||
+2
-3
@@ -103,7 +103,7 @@ p_env equ $2c ; .l pointer to environment string
|
|||||||
|
|
||||||
; Ssystem(S_FLUSHCACHE, base, length) - inside the kernel this
|
; Ssystem(S_FLUSHCACHE, base, length) - inside the kernel this
|
||||||
; is called `cpush(base, length)'.
|
; is called `cpush(base, length)'.
|
||||||
; returns: d0.l should be either 0 or -32 (== ENOSYS == EINVFN)
|
; returns: d0.w should be either 0 or -32 (== ENOSYS == EINVFN)
|
||||||
; Available since FreeMiNT 1.15.1 (1999-04-13).
|
; Available since FreeMiNT 1.15.1 (1999-04-13).
|
||||||
;
|
;
|
||||||
; Note that on a 68060 FreeMiNT just uses `cpusha bc' in all cases,
|
; Note that on a 68060 FreeMiNT just uses `cpusha bc' in all cases,
|
||||||
@@ -391,7 +391,7 @@ L(loop): move.l d3,(a6)+
|
|||||||
; info:
|
; info:
|
||||||
; This is also called as a subroutine (before decompression, NOT running
|
; This is also called as a subroutine (before decompression, NOT running
|
||||||
; in the stack). When running in the stack the `rts' is replaced by a `nop'.
|
; in the stack). When running in the stack the `rts' is replaced by a `nop'.
|
||||||
;
|
|
||||||
flush_cache:
|
flush_cache:
|
||||||
FLUSH_CACHE
|
FLUSH_CACHE
|
||||||
flush_cache_rts:
|
flush_cache_rts:
|
||||||
@@ -410,7 +410,6 @@ flush_cache_rts:
|
|||||||
; ------------- clear the dirty stack
|
; ------------- clear the dirty stack
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
;;; /* 0 || defined(FLUSH_CACHE) */
|
|
||||||
|
|
||||||
; better don't do this - we are currently running in the stack
|
; better don't do this - we are currently running in the stack
|
||||||
; and don't want to make yet another instruction-cache-line dirty
|
; and don't want to make yet another instruction-cache-line dirty
|
||||||
|
|||||||
Reference in New Issue
Block a user