register window

4 views
Skip to first unread message

Guowei Xu

unread,
Jun 26, 2010, 5:00:29 AM6/26/10
to lib...@googlegroups.com
In an instruction the register number is physical in general. But some architecture have register window option. The register number is virtual. The actual register number could be known in run-time.
In libcpu arch_put_reg() function:
......
new StoreInst(v, regs[index], bb);
......

Here index is physical number. It could be known in translate-time. How to reference a register in run-time?
Reply all
Reply to author
Forward
0 new messages