common: Remove address_range.h
The AddressRange structure isn't used anywhere within the codebase, so this can be removed. Particularly because there's no real appeal/heavy potential use of it in the future that isn't trivial to add back if needed.
This commit is contained in:
parent
ca3a2bab16
commit
3290a9fdc2
5 changed files with 0 additions and 27 deletions
|
@ -7,7 +7,6 @@ add_library(dynarmic
|
||||||
../include/dynarmic/A64/a64.h
|
../include/dynarmic/A64/a64.h
|
||||||
../include/dynarmic/A64/config.h
|
../include/dynarmic/A64/config.h
|
||||||
../include/dynarmic/A64/exclusive_monitor.h
|
../include/dynarmic/A64/exclusive_monitor.h
|
||||||
common/address_range.h
|
|
||||||
common/assert.h
|
common/assert.h
|
||||||
common/bit_util.h
|
common/bit_util.h
|
||||||
common/cast_util.h
|
common/cast_util.h
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
#include "backend/x64/devirtualize.h"
|
#include "backend/x64/devirtualize.h"
|
||||||
#include "backend/x64/emit_x64.h"
|
#include "backend/x64/emit_x64.h"
|
||||||
#include "backend/x64/perf_map.h"
|
#include "backend/x64/perf_map.h"
|
||||||
#include "common/address_range.h"
|
|
||||||
#include "common/assert.h"
|
#include "common/assert.h"
|
||||||
#include "common/bit_util.h"
|
#include "common/bit_util.h"
|
||||||
#include "common/common_types.h"
|
#include "common/common_types.h"
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
#include "backend/x64/devirtualize.h"
|
#include "backend/x64/devirtualize.h"
|
||||||
#include "backend/x64/emit_x64.h"
|
#include "backend/x64/emit_x64.h"
|
||||||
#include "backend/x64/perf_map.h"
|
#include "backend/x64/perf_map.h"
|
||||||
#include "common/address_range.h"
|
|
||||||
#include "common/assert.h"
|
#include "common/assert.h"
|
||||||
#include "common/bit_util.h"
|
#include "common/bit_util.h"
|
||||||
#include "common/common_types.h"
|
#include "common/common_types.h"
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
#include <xbyak_util.h>
|
#include <xbyak_util.h>
|
||||||
|
|
||||||
#include "backend/x64/reg_alloc.h"
|
#include "backend/x64/reg_alloc.h"
|
||||||
#include "common/address_range.h"
|
|
||||||
#include "common/bit_util.h"
|
#include "common/bit_util.h"
|
||||||
#include "common/fp/rounding_mode.h"
|
#include "common/fp/rounding_mode.h"
|
||||||
#include "frontend/ir/location_descriptor.h"
|
#include "frontend/ir/location_descriptor.h"
|
||||||
|
|
|
@ -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
|
|
Loading…
Reference in a new issue