rv2fox: Use rfp
as the temporary register instead of r0
This commit is contained in:
parent
273fac125f
commit
39fb4354a5
|
@ -157,7 +157,7 @@ class Converter:
|
||||||
self.regidx = { r: i for i, r in enumerate(self.regs) }
|
self.regidx = { r: i for i, r in enumerate(self.regs) }
|
||||||
self.xregidx = { r: i for i, r in enumerate(self.xregs) }
|
self.xregidx = { r: i for i, r in enumerate(self.xregs) }
|
||||||
|
|
||||||
self.tmp = 'r0' # temporary register
|
self.tmp = 'rfp' # temporary register
|
||||||
self.branches = ['bge', 'bgeu', 'blt', 'bltu', 'ble', 'bleu', 'bne', 'bneu']
|
self.branches = ['bge', 'bgeu', 'blt', 'bltu', 'ble', 'bleu', 'bne', 'bneu']
|
||||||
|
|
||||||
self.label_gen = iter(range(1000000))
|
self.label_gen = iter(range(1000000))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user