-cleaned up
git-svn-id: http://moon:8086/svn/mips@37 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
@@ -250,46 +250,6 @@
|
|||||||
#define COP0_INSTR_INVALL_DCACHE 34
|
#define COP0_INSTR_INVALL_DCACHE 34
|
||||||
#define COP0_INSTR_INVAT_DCACHE 35
|
#define COP0_INSTR_INVAT_DCACHE 35
|
||||||
|
|
||||||
/*
|
|
||||||
void ICACHE_invalidate_all(void)
|
|
||||||
{
|
|
||||||
__asm__
|
|
||||||
(
|
|
||||||
"cop0 32\n"
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
void ICACHE_invalidate_at(uint32_t* pPtr)
|
|
||||||
{
|
|
||||||
__asm__
|
|
||||||
(
|
|
||||||
"mtc0 %[pPtr], $31\n"
|
|
||||||
"cop0 33\n"
|
|
||||||
:
|
|
||||||
: [pPtr] "r" (pPtr)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
void DCACHE_invalidate_all(void)
|
|
||||||
{
|
|
||||||
__asm__
|
|
||||||
(
|
|
||||||
"cop0 34\n"
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
void DCACHE_invalidate_at(uint32_t* pPtr)
|
|
||||||
{
|
|
||||||
__asm__
|
|
||||||
(
|
|
||||||
"mtc0 %[pPtr], $31\n"
|
|
||||||
"cop0 35\n"
|
|
||||||
:
|
|
||||||
: [pPtr] "r" (pPtr)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define CP0_read(idx) \
|
#define CP0_read(idx) \
|
||||||
({ \
|
({ \
|
||||||
uint32_t result; \
|
uint32_t result; \
|
||||||
|
|||||||
Reference in New Issue
Block a user