Grackle: implement some register reads to avoid warnings.

This commit is contained in:
Maxim Poliakovski 2023-02-10 17:44:16 +01:00
parent fdf0ebbf6c
commit 2fb23e210e

View File

@ -171,6 +171,18 @@ uint32_t MPC106::pci_cfg_read(uint32_t reg_offs, AccessDetails &details) {
return 0; return 0;
case GrackleReg::PMCR1: case GrackleReg::PMCR1:
return (this->odcr << 24) | (this->pmcr2 << 16) | this->pmcr1; return (this->odcr << 24) | (this->pmcr2 << 16) | this->pmcr1;
case GrackleReg::MSAR1:
case GrackleReg::MSAR2:
return this->mem_start[(reg_offs >> 2) & 1];
case GrackleReg::EMSAR1:
case GrackleReg::EMSAR2:
return this->ext_mem_start[(reg_offs >> 2) & 1];
case GrackleReg::MEAR1:
case GrackleReg::MEAR2:
return this->mem_end[(reg_offs >> 2) & 1];
case GrackleReg::EMEAR1:
case GrackleReg::EMEAR2:
return this->ext_mem_end[(reg_offs >> 2) & 1];
case GrackleReg::MBER: case GrackleReg::MBER:
return this->mem_bank_en; return this->mem_bank_en;
case GrackleReg::PICR1: case GrackleReg::PICR1:
@ -179,6 +191,12 @@ uint32_t MPC106::pci_cfg_read(uint32_t reg_offs, AccessDetails &details) {
return this->picr2; return this->picr2;
case GrackleReg::MCCR1: case GrackleReg::MCCR1:
return this->mccr1; return this->mccr1;
case GrackleReg::MCCR2:
return this->mccr2;
case GrackleReg::MCCR3:
return this->mccr3;
case GrackleReg::MCCR4:
return this->mccr4;
default: default:
LOG_READ_UNIMPLEMENTED_CONFIG_REGISTER(); LOG_READ_UNIMPLEMENTED_CONFIG_REGISTER();
} }