Clean up cvars (rename, recategorize).
This commit is contained in:
@@ -27,8 +27,8 @@
|
||||
#include "xenia/cpu/stack_walker.h"
|
||||
|
||||
DEFINE_bool(
|
||||
enable_haswell_instructions, true,
|
||||
"Uses the AVX2/FMA/etc instructions on Haswell processors, if available.",
|
||||
use_haswell_instructions, true,
|
||||
"Uses the AVX2/FMA/etc instructions on Haswell processors when available.",
|
||||
"CPU");
|
||||
|
||||
namespace xe {
|
||||
@@ -84,7 +84,7 @@ bool X64Backend::Initialize(Processor* processor) {
|
||||
}
|
||||
|
||||
// Need movbe to do advanced LOAD/STORE tricks.
|
||||
if (cvars::enable_haswell_instructions) {
|
||||
if (cvars::use_haswell_instructions) {
|
||||
machine_info_.supports_extended_load_store =
|
||||
cpu.has(Xbyak::util::Cpu::tMOVBE);
|
||||
} else {
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include "xenia/base/cvar.h"
|
||||
#include "xenia/cpu/backend/backend.h"
|
||||
|
||||
DECLARE_bool(enable_haswell_instructions);
|
||||
DECLARE_bool(use_haswell_instructions);
|
||||
|
||||
namespace xe {
|
||||
class Exception;
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#include "xenia/cpu/symbol.h"
|
||||
#include "xenia/cpu/thread_state.h"
|
||||
|
||||
DEFINE_bool(enable_debugprint_log, false,
|
||||
DEFINE_bool(debugprint_trap_log, false,
|
||||
"Log debugprint traps to the active debugger", "CPU");
|
||||
DEFINE_bool(ignore_undefined_externs, true,
|
||||
"Don't exit when an undefined extern is called.", "CPU");
|
||||
@@ -70,7 +70,7 @@ X64Emitter::X64Emitter(X64Backend* backend, XbyakAllocator* allocator)
|
||||
backend_(backend),
|
||||
code_cache_(backend->code_cache()),
|
||||
allocator_(allocator) {
|
||||
if (cvars::enable_haswell_instructions) {
|
||||
if (cvars::use_haswell_instructions) {
|
||||
feature_flags_ |= cpu_.has(Xbyak::util::Cpu::tAVX2) ? kX64EmitAVX2 : 0;
|
||||
feature_flags_ |= cpu_.has(Xbyak::util::Cpu::tFMA) ? kX64EmitFMA : 0;
|
||||
feature_flags_ |= cpu_.has(Xbyak::util::Cpu::tLZCNT) ? kX64EmitLZCNT : 0;
|
||||
@@ -298,7 +298,7 @@ uint64_t TrapDebugPrint(void* raw_context, uint64_t address) {
|
||||
// TODO(benvanik): truncate to length?
|
||||
XELOGD("(DebugPrint) %s", str);
|
||||
|
||||
if (cvars::enable_debugprint_log) {
|
||||
if (cvars::debugprint_trap_log) {
|
||||
debugging::DebugPrint("(DebugPrint) %s", str);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user