X86: Detect branches taking into account instruction size.
The size of the current instruction determines what the npc should be if there's no branching.
This commit is contained in:
@@ -243,6 +243,12 @@ namespace X86ISA
|
||||
uint8_t size() const { return _size; }
|
||||
void size(uint8_t newSize) { _size = newSize; }
|
||||
|
||||
bool
|
||||
branching() const
|
||||
{
|
||||
return this->npc() != this->pc() + size();
|
||||
}
|
||||
|
||||
void
|
||||
advance()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user