fixed uuid format

This commit is contained in:
Blaise Tine 2024-07-28 17:29:15 -07:00
parent 7f99007568
commit 160c428ef5
2 changed files with 2 additions and 2 deletions

View file

@ -215,6 +215,6 @@ uint64_t dpi_uuid_gen(bool reset, int wid) {
return 0;
}
uint32_t instr_uuid = g_uuid_gens[wid]++;
uint64_t uuid = (uint64_t(wid) << 32) | instr_uuid;
uint64_t uuid = (uint64_t(instr_uuid) << 12) | wid;
return uuid;
}

View file

@ -157,7 +157,7 @@ instr_trace_t* Emulator::step() {
#ifndef NDEBUG
uint32_t instr_uuid = warp.uuid++;
uint32_t g_wid = core_->id() * arch_.num_warps() + scheduled_warp;
uint64_t uuid = (uint64_t(g_wid) << 32) | instr_uuid;
uint64_t uuid = (uint64_t(instr_uuid) << 12) | g_wid;
#else
uint64_t uuid = 0;
#endif