From 5284075cf989f91fe7eb98a6892cd521bb3e44ee Mon Sep 17 00:00:00 2001 From: Joel Linn Date: Wed, 5 May 2021 16:06:35 +0200 Subject: [PATCH] [CPU] Misc GCC build fixes --- src/xenia/cpu/backend/x64/x64_op.h | 12 ++++-------- src/xenia/cpu/export_resolver.h | 2 +- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/xenia/cpu/backend/x64/x64_op.h b/src/xenia/cpu/backend/x64/x64_op.h index f71338304..0846f9255 100644 --- a/src/xenia/cpu/backend/x64/x64_op.h +++ b/src/xenia/cpu/backend/x64/x64_op.h @@ -105,8 +105,7 @@ struct Op : OpBase { struct VoidOp : Op { protected: - template - friend struct Op; + friend struct Op; template friend struct I; void Load(const Instr::Op& op) {} @@ -116,8 +115,7 @@ struct OffsetOp : Op { uint64_t value; protected: - template - friend struct Op; + friend struct Op; template friend struct I; void Load(const Instr::Op& op) { this->value = op.offset; } @@ -127,8 +125,7 @@ struct SymbolOp : Op { Function* value; protected: - template - friend struct Op; + friend struct Op; template friend struct I; bool Load(const Instr::Op& op) { @@ -141,8 +138,7 @@ struct LabelOp : Op { hir::Label* value; protected: - template - friend struct Op; + friend struct Op; template friend struct I; void Load(const Instr::Op& op) { this->value = op.label; } diff --git a/src/xenia/cpu/export_resolver.h b/src/xenia/cpu/export_resolver.h index 5b1bdc1f8..216f47548 100644 --- a/src/xenia/cpu/export_resolver.h +++ b/src/xenia/cpu/export_resolver.h @@ -39,7 +39,7 @@ enum class ExportCategory : uint8_t { }; struct ExportTag { - typedef uint32_t type; + using type = uint32_t; // packed like so: // ll...... cccccccc ........ ..bihssi