mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-08 15:38:19 +01: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:
parent
a362bffdd4
commit
b992e5f8ec
3 changed files with 31 additions and 40 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue