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:
Gabe Black
2011-02-13 17:45:47 -08:00
parent 44306e8114
commit 77b4a37067

View File

@@ -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()
{