Commit 17d2ff6e authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

t6xx: Decode discard op

parent 0460418e
......@@ -466,7 +466,7 @@ static void print_compact_branch_writeout_field(uint16_t word)
{
lima_t6xx_branch_uncond_t br_uncond;
memcpy((char*) &br_uncond, (char*) &word, sizeof(br_uncond));
printf("br_uncond ");
printf("br.uncond ");
if (br_uncond.unknown != 1)
printf("unknown:%d, ", br_uncond.unknown);
if (br_uncond.offset > 0)
......@@ -476,10 +476,21 @@ static void print_compact_branch_writeout_field(uint16_t word)
}
case lima_t6xx_jmp_writeout_op_branch_cond:
case lima_t6xx_jmp_writeout_op_writeout:
case lima_t6xx_jmp_writeout_op_discard:
{
lima_t6xx_branch_cond_t br_cond;
memcpy((char*) &br_cond, (char*) &word, sizeof(br_cond));
printf("br_cond.");
printf("br.");
switch (op)
{
case lima_t6xx_jmp_writeout_op_branch_cond: printf("cond."); break;
case lima_t6xx_jmp_writeout_op_writeout: printf("write."); break;
case lima_t6xx_jmp_writeout_op_discard: printf("discard."); break;
default: break;
}
switch (br_cond.cond)
{
case 0: printf("unk0"); break;
......
......@@ -181,6 +181,7 @@ typedef enum
{
lima_t6xx_jmp_writeout_op_branch_uncond = 1,
lima_t6xx_jmp_writeout_op_branch_cond = 2,
lima_t6xx_jmp_writeout_op_discard = 4,
lima_t6xx_jmp_writeout_op_writeout = 7,
} lima_t6xx_jmp_writeout_op_e;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment