bandit: Fix regression in non-Aspen PCI bridge

Refactor from e7da98b6bd accidentally
made the non-Aspen PCI code path for CONFIG_ADDR writes by a no-op.
This commit is contained in:
Mihai Parparita 2024-04-08 15:41:19 -05:00
parent bdd441b1b6
commit cf4913deb0
1 changed files with 1 additions and 4 deletions

View File

@ -193,10 +193,7 @@ void BanditHost::write(uint32_t rgn_start, uint32_t offset, uint32_t value, int
break;
case 2: // CONFIG_ADDR
if (this->is_aspen)
this->config_addr = value;
else
BYTESWAP_32(value);
this->config_addr = (this->is_aspen) ? value : BYTESWAP_32(value);
break;
default: // I/O space