OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [or1ksim/] [testbench/] [mmu_asm.S] - Blame information for rev 475

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 410 simons
#include "spr_defs.h"
2
 
3
    .global _lo_dmmu_en
4
    .global _lo_immu_en
5 415 simons
    .global _testjump
6 410 simons
 
7
_lo_dmmu_en:
8
                l.mfspr r3,r0,SPR_SR
9
    l.ori   r3,r3,SPR_SR_EXR
10
    l.ori   r3,r3,SPR_SR_DME
11
    l.mtspr r0,r3,SPR_ESR_BASE
12
    l.mtspr r0,r9,SPR_EPCR_BASE
13
    l.rfe
14
    l.nop
15
 
16
_lo_immu_en:
17
                l.mfspr r3,r0,SPR_SR
18
    l.ori   r3,r3,SPR_SR_EXR
19 415 simons
    l.ori   r3,r3,SPR_SR_IME
20 410 simons
    l.mtspr r0,r3,SPR_ESR_BASE
21
    l.mtspr r0,r9,SPR_EPCR_BASE
22
    l.rfe
23
    l.nop
24 415 simons
 
25
_testjump:
26
    l.movhi r5,0x4800
27
    l.ori   r5,r5,0x4800
28
    l.sw    0x0(r3),r5
29
    l.movhi r5,0x1500
30
    l.ori   r5,r5,0x0000
31
    l.sw    0x4(r3),r5
32
    l.or    r5,r0,r9
33
    l.jalr  r4
34
    l.nop
35
    l.or    r9,r0,r5
36 475 simons
    l.jr    r9
37 415 simons
    l.nop

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.