early-access version 1391
This commit is contained in:
parent
ef74ce8ba1
commit
a0d1812ad5
@ -1,7 +1,7 @@
|
|||||||
yuzu emulator early access
|
yuzu emulator early access
|
||||||
=============
|
=============
|
||||||
|
|
||||||
This is the source code for early-access 1390.
|
This is the source code for early-access 1391.
|
||||||
|
|
||||||
## Legal Notice
|
## Legal Notice
|
||||||
|
|
||||||
|
@ -110,6 +110,7 @@ struct UserCallbacks {
|
|||||||
|
|
||||||
virtual void ExceptionRaised(VAddr pc, Exception exception) = 0;
|
virtual void ExceptionRaised(VAddr pc, Exception exception) = 0;
|
||||||
virtual void DataCacheOperationRaised(DataCacheOperation /*op*/, VAddr /*value*/) {}
|
virtual void DataCacheOperationRaised(DataCacheOperation /*op*/, VAddr /*value*/) {}
|
||||||
|
virtual void InstructionSynchronizationBarrierRaised() {}
|
||||||
|
|
||||||
// Timing-related callbacks
|
// Timing-related callbacks
|
||||||
// ticks ticks have passed
|
// ticks ticks have passed
|
||||||
@ -153,6 +154,11 @@ struct UserConfig {
|
|||||||
/// Executing DC ZVA in this mode will result in zeros being written to memory.
|
/// Executing DC ZVA in this mode will result in zeros being written to memory.
|
||||||
bool hook_data_cache_operations = false;
|
bool hook_data_cache_operations = false;
|
||||||
|
|
||||||
|
/// When set to true, UserCallbacks::InstructionSynchronizationBarrierRaised will be
|
||||||
|
/// called when an ISB instruction is executed.
|
||||||
|
/// When set to false, ISB will be treated as a NOP instruction.
|
||||||
|
bool hook_isb = false;
|
||||||
|
|
||||||
/// When set to true, UserCallbacks::ExceptionRaised will be called when any hint
|
/// When set to true, UserCallbacks::ExceptionRaised will be called when any hint
|
||||||
/// instruction is executed.
|
/// instruction is executed.
|
||||||
bool hook_hint_instructions = false;
|
bool hook_hint_instructions = false;
|
||||||
|
@ -659,11 +659,13 @@ void A64EmitX64::EmitA64DataMemoryBarrier(A64EmitContext&, IR::Inst*) {
|
|||||||
code.lfence();
|
code.lfence();
|
||||||
}
|
}
|
||||||
|
|
||||||
void A64EmitX64::EmitA64InstructionSynchronizationBarrier(A64EmitContext& ctx, IR::Inst* ) {
|
void A64EmitX64::EmitA64InstructionSynchronizationBarrier(A64EmitContext& ctx, IR::Inst*) {
|
||||||
ctx.reg_alloc.HostCall(nullptr);
|
if (!conf.hook_isb) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
code.mov(code.ABI_PARAM1, reinterpret_cast<u64>(jit_interface));
|
ctx.reg_alloc.HostCall(nullptr);
|
||||||
code.CallLambda([](A64::Jit* jit) { jit->ClearCache(); });
|
Devirtualize<&A64::UserCallbacks::InstructionSynchronizationBarrierRaised>(conf.callbacks).EmitCall(code);
|
||||||
}
|
}
|
||||||
|
|
||||||
void A64EmitX64::EmitA64GetCNTFRQ(A64EmitContext& ctx, IR::Inst* inst) {
|
void A64EmitX64::EmitA64GetCNTFRQ(A64EmitContext& ctx, IR::Inst* inst) {
|
||||||
|
Loading…
Reference in New Issue
Block a user