mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2025-12-29 10:45:20 +01:00
ir/value: Use type alias CoprocessorInfo for std::array<u8, 8>
Provides a more descriptive label for the interface, and avoids the need to hardcode the array size in multiple places.
This commit is contained in:
parent
71e137715d
commit
2188765e28
3 changed files with 46 additions and 44 deletions
|
|
@ -52,7 +52,7 @@ Value::Value(u64 value) : type(Type::U64) {
|
|||
inner.imm_u64 = value;
|
||||
}
|
||||
|
||||
Value::Value(std::array<u8, 8> value) : type(Type::CoprocInfo) {
|
||||
Value::Value(CoprocessorInfo value) : type(Type::CoprocInfo) {
|
||||
inner.imm_coproc = value;
|
||||
}
|
||||
|
||||
|
|
@ -141,7 +141,7 @@ u64 Value::GetU64() const {
|
|||
return inner.imm_u64;
|
||||
}
|
||||
|
||||
std::array<u8, 8> Value::GetCoprocInfo() const {
|
||||
Value::CoprocessorInfo Value::GetCoprocInfo() const {
|
||||
if (type == Type::Opaque && inner.inst->GetOpcode() == Opcode::Identity)
|
||||
return inner.inst->GetArg(0).GetCoprocInfo();
|
||||
ASSERT(type == Type::CoprocInfo);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue