Mem and Regs not part of cpu anymore.
This commit is contained in:
@@ -54,11 +54,11 @@ struct Error {
|
||||
};
|
||||
|
||||
template <class... Args>
|
||||
std::string Format(Severity severity,
|
||||
std::optional<u64> lastPC,
|
||||
std::optional<MemoryAccess> memoryAccess,
|
||||
std::optional<Type> type,
|
||||
const std::format_string<Args...> fmt, Args... args) {
|
||||
void Throw (Severity severity,
|
||||
Type type,
|
||||
std::optional<u64> lastPC,
|
||||
std::optional<MemoryAccess> memoryAccess,
|
||||
const std::format_string<Args...> fmt, Args... args) {
|
||||
this->severity = severity;
|
||||
this->lastPC = lastPC;
|
||||
this->memoryAccess = memoryAccess;
|
||||
@@ -74,11 +74,16 @@ struct Error {
|
||||
return severity == NONE;
|
||||
}
|
||||
|
||||
static Error& Get() {
|
||||
static Error& GetInstance() {
|
||||
static Error instance;
|
||||
return instance;
|
||||
}
|
||||
|
||||
static std::string Get() {
|
||||
return GetInstance().err;
|
||||
}
|
||||
private:
|
||||
std::string err;
|
||||
Severity severity = NONE;
|
||||
Type type = {};
|
||||
std::optional<u64> lastPC = {};
|
||||
|
||||
Reference in New Issue
Block a user