projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cd6c71
)
Add code, commented-out, for TRAP so as to not break test_caller.py
author
colepoirier
<colepoirier@gmail.com>
Sat, 20 Jun 2020 01:30:54 +0000
(18:30 -0700)
committer
colepoirier
<colepoirier@gmail.com>
Sat, 20 Jun 2020 01:30:54 +0000
(18:30 -0700)
src/soc/decoder/isa/caller.py
patch
|
blob
|
history
diff --git
a/src/soc/decoder/isa/caller.py
b/src/soc/decoder/isa/caller.py
index 7bf411fd7cd541e6c96e16137b4bd1674fac422a..b3b2c17132db8afbc299e8ee50f23e18635f884f 100644
(file)
--- a/
src/soc/decoder/isa/caller.py
+++ b/
src/soc/decoder/isa/caller.py
@@
-297,6
+297,10
@@
class ISACaller:
def TRAP(self, trap_addr=0x700):
print ("TRAP: TODO")
+ #self.namespace['NIA'] = trap_addr
+ #self.SRR0 = self.namespace['CIA'] + 4
+ #self.SRR1 = self.namespace['MSR']
+ #self.namespace['MSR'][45] = 1
# store CIA(+4?) in SRR0, set NIA to 0x700
# store MSR in SRR1, set MSR to um errr something, have to check spec