mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
Merge branch 'exec_rw_const_v4' of https://github.com/philmd/qemu into HEAD
This commit is contained in:
commit
9e264985ff
50 changed files with 358 additions and 256 deletions
|
@ -874,18 +874,18 @@ static inline int ida_read_next_idaw(CcwDataStream *cds)
|
|||
if (idaw_addr & 0x07 || !cds_ccw_addrs_ok(idaw_addr, 0, ccw_fmt1)) {
|
||||
return -EINVAL; /* channel program check */
|
||||
}
|
||||
ret = address_space_rw(&address_space_memory, idaw_addr,
|
||||
MEMTXATTRS_UNSPECIFIED, (void *) &idaw.fmt2,
|
||||
sizeof(idaw.fmt2), false);
|
||||
ret = address_space_read(&address_space_memory, idaw_addr,
|
||||
MEMTXATTRS_UNSPECIFIED, &idaw.fmt2,
|
||||
sizeof(idaw.fmt2));
|
||||
cds->cda = be64_to_cpu(idaw.fmt2);
|
||||
} else {
|
||||
idaw_addr = cds->cda_orig + sizeof(idaw.fmt1) * cds->at_idaw;
|
||||
if (idaw_addr & 0x03 || !cds_ccw_addrs_ok(idaw_addr, 0, ccw_fmt1)) {
|
||||
return -EINVAL; /* channel program check */
|
||||
}
|
||||
ret = address_space_rw(&address_space_memory, idaw_addr,
|
||||
MEMTXATTRS_UNSPECIFIED, (void *) &idaw.fmt1,
|
||||
sizeof(idaw.fmt1), false);
|
||||
ret = address_space_read(&address_space_memory, idaw_addr,
|
||||
MEMTXATTRS_UNSPECIFIED, &idaw.fmt1,
|
||||
sizeof(idaw.fmt1));
|
||||
cds->cda = be64_to_cpu(idaw.fmt1);
|
||||
if (cds->cda & 0x80000000) {
|
||||
return -EINVAL; /* channel program check */
|
||||
|
|
|
@ -626,7 +626,7 @@ static void s390_ipl_prepare_qipl(S390CPU *cpu)
|
|||
uint8_t *addr;
|
||||
uint64_t len = 4096;
|
||||
|
||||
addr = cpu_physical_memory_map(cpu->env.psa, &len, 1);
|
||||
addr = cpu_physical_memory_map(cpu->env.psa, &len, true);
|
||||
if (!addr || len < QIPL_ADDRESS + sizeof(QemuIplParameters)) {
|
||||
error_report("Cannot set QEMU IPL parameters");
|
||||
return;
|
||||
|
|
|
@ -641,7 +641,7 @@ static uint8_t set_ind_atomic(uint64_t ind_loc, uint8_t to_be_set)
|
|||
hwaddr len = 1;
|
||||
uint8_t *ind_addr;
|
||||
|
||||
ind_addr = cpu_physical_memory_map(ind_loc, &len, 1);
|
||||
ind_addr = cpu_physical_memory_map(ind_loc, &len, true);
|
||||
if (!ind_addr) {
|
||||
s390_pci_generate_error_event(ERR_EVENT_AIRERR, 0, 0, 0, 0);
|
||||
return -1;
|
||||
|
|
|
@ -790,7 +790,7 @@ static uint8_t virtio_set_ind_atomic(SubchDev *sch, uint64_t ind_loc,
|
|||
hwaddr len = 1;
|
||||
uint8_t *ind_addr;
|
||||
|
||||
ind_addr = cpu_physical_memory_map(ind_loc, &len, 1);
|
||||
ind_addr = cpu_physical_memory_map(ind_loc, &len, true);
|
||||
if (!ind_addr) {
|
||||
error_report("%s(%x.%x.%04x): unable to access indicator",
|
||||
__func__, sch->cssid, sch->ssid, sch->schid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue