Skip to contentSkip to conversation

s390: avoid reaching into memory core internals

PATCH Superseded Avi Kivity 1 participant 1 message Oct 3, 2012

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Avi Kivity

author
#0 lore raw

PATCH 1/1 s390: avoid reaching into memory core internals

use cpu_physical_memory_is_io() instead.

---
 target-s390x/misc_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target-s390x/misc_helper.c +1 -1
index e9b3cae..2da4c90 100644
@@ -81,7 +81,7 @@ int sclp_service_call(CPUS390XState *env, uint32_t sccb, uint64_t code)
 #endif
 
     /* basic checks */
-    if (!memory_region_is_ram(phys_page_find(sccb >> TARGET_PAGE_BITS)->mr)) {
+    if (cpu_physical_memory_is_io(sccb)) {
         return -PGM_ADDRESSING;
     }
     if (sccb & ~0x7ffffff8ul) {
Signature · 1 line
1.7.12