Skip to content

Commit

Permalink
Review remarks from 63474d2
Browse files Browse the repository at this point in the history
  • Loading branch information
ergo720 committed Apr 17, 2024
1 parent 63474d2 commit d671ac4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hw/video/gpu/pfifo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void pfifo::write(uint32_t addr, const uint32_t data)
log_io_write();
}

uint32_t addr_off = (addr - NV_PFIFO_BASE) >> 2;
uint32_t addr_off = REGS_PFIFO_idx(addr);
switch (addr)
{
case NV_PFIFO_INTR_0:
Expand Down Expand Up @@ -60,7 +60,7 @@ uint32_t pfifo::read(uint32_t addr)
return 0;
}

uint32_t addr_off = (addr - NV_PFIFO_BASE) >> 2;
uint32_t addr_off = REGS_PFIFO_idx(addr);
uint32_t value = regs[addr_off];

if constexpr (log) {
Expand Down

0 comments on commit d671ac4

Please sign in to comment.