sal: CPU now knows extended trace registers

The extended trace register list is needed in multiple locations; the CPU
class is the logical module to contain this information.

Increased number of x86 registers to be traced; we can remove those
that prove unusable for fault-space pruning later on.

Change-Id: Ic46ecdbc55167a6d92872c190317fc0d1a3ad92d
This commit is contained in:
Horst Schirmeier
2013-06-25 17:16:54 +02:00
parent 52723a874e
commit 4e3c9e3758
4 changed files with 22 additions and 13 deletions

View File

@ -41,6 +41,12 @@ X86Architecture::X86Architecture()
Register* pFlagReg = new Register(RID_FLAGS, 32);
pFlagReg->setName("EFLAGS");
m_addRegister(pFlagReg, RT_ST);
// Registers used for extended tracing:
size_t ids[] = {RID_CAX, RID_CBX, RID_CCX, RID_CDX, RID_CSI, RID_CDI, RID_CSP, RID_CBP, RID_FLAGS};
for (size_t i = 0; i < sizeof(ids)/sizeof(*ids); ++i) {
m_addRegister(getRegister(ids[i]), RT_TRACE);
}
}
X86Architecture::~X86Architecture()