summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86/types.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/arch/x86/types.hh b/src/arch/x86/types.hh
index d78af1b81..4641141d3 100644
--- a/src/arch/x86/types.hh
+++ b/src/arch/x86/types.hh
@@ -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()
{