frontend/A64/ir_emitter: Mark PC() and AlignPC() as const qualified member functions
These don't actually alter any instance state.
This commit is contained in:
parent
2eaf922f8b
commit
3a2dd09122
2 changed files with 5 additions and 5 deletions
|
@ -12,12 +12,12 @@ namespace Dynarmic::A64 {
|
||||||
|
|
||||||
using Opcode = IR::Opcode;
|
using Opcode = IR::Opcode;
|
||||||
|
|
||||||
u64 IREmitter::PC() {
|
u64 IREmitter::PC() const {
|
||||||
return current_location->PC();
|
return current_location->PC();
|
||||||
}
|
}
|
||||||
|
|
||||||
u64 IREmitter::AlignPC(size_t alignment) {
|
u64 IREmitter::AlignPC(size_t alignment) const {
|
||||||
u64 pc = PC();
|
const u64 pc = PC();
|
||||||
return static_cast<u64>(pc - pc % alignment);
|
return static_cast<u64>(pc - pc % alignment);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,8 +31,8 @@ public:
|
||||||
|
|
||||||
std::optional<LocationDescriptor> current_location;
|
std::optional<LocationDescriptor> current_location;
|
||||||
|
|
||||||
u64 PC();
|
u64 PC() const;
|
||||||
u64 AlignPC(size_t alignment);
|
u64 AlignPC(size_t alignment) const;
|
||||||
|
|
||||||
void SetCheckBit(const IR::U1& value);
|
void SetCheckBit(const IR::U1& value);
|
||||||
IR::U1 GetCFlag();
|
IR::U1 GetCFlag();
|
||||||
|
|
Loading…
Reference in a new issue