15c15
< * Copyright (c) 2016 The University of Virginia
---
> * Copyright (c) 2017 The University of Virginia
52a53
>
56,57c57,60
< typedef GenericISA::UPCState<MachInst> PCState;
< }
---
> class PCState : public GenericISA::UPCState<MachInst>
> {
> private:
> bool _compressed;
58a62,64
> public:
> PCState() : UPCState() { _compressed = false; }
> PCState(Addr val) : UPCState(val) { _compressed = false; }
59a66,83
> void compressed(bool c) { _compressed = c; }
> bool compressed() { return _compressed; }
>
> bool
> branching() const
> {
> if (_compressed) {
> return npc() != pc() + sizeof(MachInst)/2 ||
> nupc() != upc() + 1;
> } else {
> return npc() != pc() + sizeof(MachInst) ||
> nupc() != upc() + 1;
> }
> }
> };
>
> }
>