interface: Move Vector typedef to config.h

This commit is contained in:
MerryMage 2018-01-24 15:52:49 +00:00
parent 33bba6028c
commit 1749780929
5 changed files with 11 additions and 10 deletions

View file

@ -74,9 +74,6 @@ public:
/// Modify all general-purpose registers.
void SetRegisters(const std::array<std::uint64_t, 31>& value);
using Vector = std::array<std::uint64_t, 2>;
static_assert(sizeof(Vector) == sizeof(std::uint64_t) * 2, "Vector must be 128 bits in size");
/// Read floating point and SIMD register.
Vector GetVector(std::size_t index) const;
/// Modify floating point and SIMD register.

View file

@ -16,6 +16,9 @@ namespace A64 {
using VAddr = std::uint64_t;
using Vector = std::array<std::uint64_t, 2>;
static_assert(sizeof(Vector) == sizeof(std::uint64_t) * 2, "Vector must be 128 bits in size");
enum class Exception {
/// An UndefinedFault occured due to executing instruction with an unallocated encoding
UnallocatedEncoding,