Quoting Nilay Vaish <[email protected]>:

1. If restoring from a checkpoint, does m5Reg takes the value stored in the checkpoint or is it computed again from the values taken by other registers?

I don't know, but these should be equivalent. m5Reg is just a single place to get at some handy values so you only have to call into the ThreadContext once. If it's not setting them with side effects then I don't think the m5Reg will be updated.


2. In 64-bit mode, should addressSize used in calculation of effective address be 8? I see addressSize being set to 2. It seems to me that the EFER register should be wrong in this case. But it is being set to 0xD01, which means both LME and LMA are set. So, is the addressSize being set correctly and I am thinking some thing wrong? Or there is some thing else which is wrong, which makes addressSize = 2?

You haven't given many details, but yes, I think the address size in 64 bit mode is supposed to be 64 bits. Where is that not true?

Gabe
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to