Skip to content

Commit

Permalink
Merge pull request #176 from flaviojs/fix-unintended-sign-extension-d…
Browse files Browse the repository at this point in the history
…ev_c7200_mpfpga_access

Fix unintended sign extension in dev_c7200_mpfpga_access.
  • Loading branch information
grossmj authored Mar 15, 2024
2 parents 80260b3 + 875aaa9 commit ddff77e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/dev_c7200_mpfpga.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,9 @@ void *dev_c7200_mpfpga_access(cpu_gen_t *cpu,struct vdevice *dev,
offset = dev_c7200_net_get_reg_offset(0);

if (router->net_irq_status[2]) {
*data |= 0xFF << offset;
*data |= ((m_uint64_t)0xFF) << offset;
} else {
*data &= ~(0xFF << offset);
*data &= ~(((m_uint64_t)0xFF) << offset);
}
}
}
Expand Down

0 comments on commit ddff77e

Please sign in to comment.