mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-03-11 15:56:28 +00:00
Ranged cache invalidation
* Fix clearing code block on a partial invalidation * Remove unnecessary use of boost::variant * Code cleanup
This commit is contained in:
@@ -6,20 +6,14 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
#include <boost/variant.hpp>
|
||||
|
||||
#include "common/common_types.h"
|
||||
|
||||
namespace Dynarmic {
|
||||
namespace Common {
|
||||
|
||||
struct FullAddressRange {};
|
||||
|
||||
struct AddressInterval {
|
||||
struct AddressRange {
|
||||
u32 start_address;
|
||||
std::size_t length;
|
||||
size_t length;
|
||||
|
||||
// Does this interval overlap with [from, to)?
|
||||
bool Overlaps(u32 from, u32 to) const {
|
||||
@@ -27,7 +21,5 @@ struct AddressInterval {
|
||||
}
|
||||
};
|
||||
|
||||
using AddressRange = boost::variant<FullAddressRange, AddressInterval>;
|
||||
|
||||
} // namespace Common
|
||||
} // namespace Dynarmic
|
||||
|
||||
Reference in New Issue
Block a user