Compare commits

...

2 commits

Author SHA1 Message Date
91a4f55937
dyrnamic: include missing header
Some checks failed
eden-license / license-header (pull_request) Failing after 22s
Signed-off-by: Caio Oliveira <caiooliveirafarias0@gmail.com>
2025-10-05 11:22:38 -03:00
dd01cb0ed0
dynarmic: fix use of undeclared identifier 'ASSERT_FALSE'
Signed-off-by: Caio Oliveira <caiooliveirafarias0@gmail.com>
2025-10-05 11:20:41 -03:00
2 changed files with 8 additions and 7 deletions

View file

@ -182,7 +182,7 @@ public:
} else if constexpr (size == 32) {
return ReadW(arg);
} else {
ASSERT_FALSE("Invalid size to ReadReg {}", size);
ASSERT_MSG(false, "Invalid size to ReadReg {}", size);
}
}
@ -199,7 +199,7 @@ public:
} else if constexpr (size == 8) {
return ReadB(arg);
} else {
ASSERT_FALSE("Invalid size to ReadVec {}", size);
ASSERT_MSG(false, "Invalid size to ReadVec {}", size);
}
}
@ -221,7 +221,7 @@ public:
} else if constexpr (size == 32) {
return WriteW(inst);
} else {
ASSERT_FALSE("Invalid size to WriteReg {}", size);
ASSERT_MSG(false, "Invalid size to WriteReg {}", size);
}
}
@ -238,7 +238,7 @@ public:
} else if constexpr (size == 8) {
return WriteB(inst);
} else {
ASSERT_FALSE("Invalid size to WriteVec {}", size);
ASSERT_MSG(false, "Invalid size to WriteVec {}", size);
}
}
@ -258,7 +258,7 @@ public:
} else if constexpr (size == 32) {
return ReadWriteW(arg, inst);
} else {
ASSERT_FALSE("Invalid size to ReadWriteReg {}", size);
ASSERT_MSG(false, "Invalid size to ReadWriteReg {}", size);
}
}
@ -275,7 +275,7 @@ public:
} else if constexpr (size == 8) {
return ReadWriteB(arg, inst);
} else {
ASSERT_FALSE("Invalid size to ReadWriteVec {}", size);
ASSERT_MSG(false, "Invalid size to ReadWriteVec {}", size);
}
}
@ -372,7 +372,7 @@ void RAReg<T>::Realize() {
reg = T{reg_alloc.RealizeReadWriteImpl<kind>(read_value, write_value)};
break;
default:
ASSERT_FALSE("Invalid RWType");
ASSERT_MSG(false, "Invalid RWType");
}
}

View file

@ -6,6 +6,7 @@
#pragma once
#include <cstddef>
#include <cstdlib>
#include <vector>
namespace Dynarmic::Common {