update parallel rsp

This commit is contained in:
Logan McNaughton committed 2022-12-31 14:56:19 -07:00
1 parent 6830381be8
commit 0ab39610e5
3 files changed
+14

No files matched your search

+12
View File
@@ -321,9 +321,21 @@ extern "C"
static void add_instruction_count(CPUState *rsp, uint32_t instruction_type)
{
if (instruction_type == rsp->last_instruction_type)
{
++rsp->instruction_count;
rsp->instruction_pipeline = 0;
}
else
{
rsp->last_instruction_type = instruction_type;
if (rsp->instruction_pipeline)
{
++rsp->instruction_count;
rsp->instruction_pipeline = 0;
}
else
rsp->instruction_pipeline = 1;
}
}
}