diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 28090ca2..c6a51f87 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -7,7 +7,6 @@ add_library(dynarmic ../include/dynarmic/A64/a64.h ../include/dynarmic/A64/config.h ../include/dynarmic/A64/exclusive_monitor.h - common/address_range.h common/assert.h common/bit_util.h common/cast_util.h diff --git a/src/backend/x64/a32_emit_x64.cpp b/src/backend/x64/a32_emit_x64.cpp index 4f997b34..32ee18a0 100644 --- a/src/backend/x64/a32_emit_x64.cpp +++ b/src/backend/x64/a32_emit_x64.cpp @@ -20,7 +20,6 @@ #include "backend/x64/devirtualize.h" #include "backend/x64/emit_x64.h" #include "backend/x64/perf_map.h" -#include "common/address_range.h" #include "common/assert.h" #include "common/bit_util.h" #include "common/common_types.h" diff --git a/src/backend/x64/a64_emit_x64.cpp b/src/backend/x64/a64_emit_x64.cpp index 411ed281..a73cceb2 100644 --- a/src/backend/x64/a64_emit_x64.cpp +++ b/src/backend/x64/a64_emit_x64.cpp @@ -17,7 +17,6 @@ #include "backend/x64/devirtualize.h" #include "backend/x64/emit_x64.h" #include "backend/x64/perf_map.h" -#include "common/address_range.h" #include "common/assert.h" #include "common/bit_util.h" #include "common/common_types.h" diff --git a/src/backend/x64/emit_x64.h b/src/backend/x64/emit_x64.h index 75ee9b3e..ca5f539c 100644 --- a/src/backend/x64/emit_x64.h +++ b/src/backend/x64/emit_x64.h @@ -17,7 +17,6 @@ #include #include "backend/x64/reg_alloc.h" -#include "common/address_range.h" #include "common/bit_util.h" #include "common/fp/rounding_mode.h" #include "frontend/ir/location_descriptor.h" diff --git a/src/common/address_range.h b/src/common/address_range.h deleted file mode 100644 index edf7bcf3..00000000 --- a/src/common/address_range.h +++ /dev/null @@ -1,23 +0,0 @@ -/* This file is part of the dynarmic project. - * Copyright (c) 2016 MerryMage - * This software may be used and distributed according to the terms of the GNU - * General Public License version 2 or any later version. - */ - -#pragma once - -#include "common/common_types.h" - -namespace Dynarmic::Common { - -struct AddressRange { - u32 start_address; - size_t length; - - // Does this interval overlap with [from, to)? - bool Overlaps(u32 from, u32 to) const { - return start_address <= to && from <= start_address + length; - } -}; - -} // namespace Dynarmic::Common