CodeLoader: Mark GetStackPointer() as const

This isn't intended to modify anything.
This commit is contained in:
Lioncache committed 2025-09-08 12:19:15 -04:00
1 parent ecc526a9d8
commit 17fbe52cf6
3 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -30,7 +30,7 @@ public:
/**
* Returns the initial stack pointer
*/
virtual uint64_t GetStackPointer() = 0;
virtual uint64_t GetStackPointer() const = 0;
/**
* @brief Function to return the guest RIP that the code should start out at
+1 -1
View File
@@ -453,7 +453,7 @@ public:
return Page > 0 ? Page : FEXCore::Utils::FEX_PAGE_SIZE;
}
uint64_t GetStackPointer() override {
uint64_t GetStackPointer() const override {
LOGMAN_MSG_A_FMT("This should be unused.");
FEX_UNREACHABLE;
}
+4 -4
View File
@@ -354,15 +354,15 @@ public:
Sections.clear();
}
virtual uint64_t StackSize() const override {
uint64_t StackSize() const override {
return STACK_SIZE;
}
virtual uint64_t GetStackPointer() override {
uint64_t GetStackPointer() const override {
return StackPointer;
}
virtual uint64_t DefaultRIP() const override {
uint64_t DefaultRIP() const override {
return Entrypoint;
};
}
struct auxv32_t {
uint32_t key;