TLS access is slow.
This commit is contained in:
parent
2403f367b1
commit
e36e1acc1a
|
@ -417,7 +417,7 @@ int TranslateInvalid(TranslationContext& ctx, Instr* i) {
|
||||||
|
|
||||||
uint32_t IntCode_COMMENT(IntCodeState& ics, const IntCode* i) {
|
uint32_t IntCode_COMMENT(IntCodeState& ics, const IntCode* i) {
|
||||||
char* value = (char*)(i->src1_reg | ((uint64_t)i->src2_reg << 32));
|
char* value = (char*)(i->src1_reg | ((uint64_t)i->src2_reg << 32));
|
||||||
IPRINT("XE[t] :%d: %s\n", ics.thread_state->GetThreadID(), value);
|
IPRINT("XE[t] :%d: %s\n", ics.thread_state->thread_id(), value);
|
||||||
IFLUSH();
|
IFLUSH();
|
||||||
return IA_NEXT;
|
return IA_NEXT;
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@ namespace lowering {
|
||||||
|
|
||||||
void TraceString(void* raw_context, const char* str) {
|
void TraceString(void* raw_context, const char* str) {
|
||||||
auto thread_state = *((ThreadState**)raw_context);
|
auto thread_state = *((ThreadState**)raw_context);
|
||||||
IPRINT("XE[t] :%d: %s\n", thread_state->GetThreadID(), str);
|
IPRINT("XE[t] :%d: %s\n", thread_state->thread_id(), str);
|
||||||
IFLUSH();
|
IFLUSH();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue