r267169 should apply to 64-bit BARs as well.
Reviewed by: neel
This commit is contained in:
parent
45129f3233
commit
67b6ffaad6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=267294
@ -376,7 +376,7 @@ pci_emul_mem_handler(struct vmctx *ctx, int vcpu, int dir, uint64_t addr,
|
||||
offset = addr - pdi->pi_bar[bidx].addr;
|
||||
|
||||
if (dir == MEM_F_WRITE) {
|
||||
if (pdi->pi_bar[bidx].type == PCIBAR_MEM32 && size == 8) {
|
||||
if (size == 8) {
|
||||
(*pe->pe_barwrite)(ctx, vcpu, pdi, bidx, offset,
|
||||
4, *val & 0xffffffff);
|
||||
(*pe->pe_barwrite)(ctx, vcpu, pdi, bidx, offset + 4,
|
||||
@ -386,7 +386,7 @@ pci_emul_mem_handler(struct vmctx *ctx, int vcpu, int dir, uint64_t addr,
|
||||
size, *val);
|
||||
}
|
||||
} else {
|
||||
if (pdi->pi_bar[bidx].type == PCIBAR_MEM32 && size == 8) {
|
||||
if (size == 8) {
|
||||
*val = (*pe->pe_barread)(ctx, vcpu, pdi, bidx,
|
||||
offset, 4);
|
||||
*val |= (*pe->pe_barread)(ctx, vcpu, pdi, bidx,
|
||||
|
Loading…
Reference in New Issue
Block a user