exec/memory: Expose memory_region_access_valid()
Instead of having hardware device poking into memory internal API, expose memory_region_access_valid(). Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20221217152454.96388-2-philmd@linaro.org> Reviewed-by: Eric Farman <farman@linux.ibm.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
		
							parent
							
								
									6b1ec8a947
								
							
						
					
					
						commit
						94e273dbb5
					
				@ -13,7 +13,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#include "qemu/osdep.h"
 | 
					#include "qemu/osdep.h"
 | 
				
			||||||
#include "exec/memop.h"
 | 
					#include "exec/memop.h"
 | 
				
			||||||
#include "exec/memory-internal.h"
 | 
					#include "exec/memory.h"
 | 
				
			||||||
#include "qemu/error-report.h"
 | 
					#include "qemu/error-report.h"
 | 
				
			||||||
#include "sysemu/hw_accel.h"
 | 
					#include "sysemu/hw_accel.h"
 | 
				
			||||||
#include "hw/s390x/s390-pci-inst.h"
 | 
					#include "hw/s390x/s390-pci-inst.h"
 | 
				
			||||||
 | 
				
			|||||||
@ -38,10 +38,6 @@ void flatview_unref(FlatView *view);
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
extern const MemoryRegionOps unassigned_mem_ops;
 | 
					extern const MemoryRegionOps unassigned_mem_ops;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bool memory_region_access_valid(MemoryRegion *mr, hwaddr addr,
 | 
					 | 
				
			||||||
                                unsigned size, bool is_write,
 | 
					 | 
				
			||||||
                                MemTxAttrs attrs);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
void flatview_add_to_dispatch(FlatView *fv, MemoryRegionSection *section);
 | 
					void flatview_add_to_dispatch(FlatView *fv, MemoryRegionSection *section);
 | 
				
			||||||
AddressSpaceDispatch *address_space_dispatch_new(FlatView *fv);
 | 
					AddressSpaceDispatch *address_space_dispatch_new(FlatView *fv);
 | 
				
			||||||
void address_space_dispatch_compact(AddressSpaceDispatch *d);
 | 
					void address_space_dispatch_compact(AddressSpaceDispatch *d);
 | 
				
			||||||
 | 
				
			|||||||
@ -2442,6 +2442,10 @@ void memory_global_dirty_log_stop(unsigned int flags);
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
void mtree_info(bool flatview, bool dispatch_tree, bool owner, bool disabled);
 | 
					void mtree_info(bool flatview, bool dispatch_tree, bool owner, bool disabled);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					bool memory_region_access_valid(MemoryRegion *mr, hwaddr addr,
 | 
				
			||||||
 | 
					                                unsigned size, bool is_write,
 | 
				
			||||||
 | 
					                                MemTxAttrs attrs);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * memory_region_dispatch_read: perform a read directly to the specified
 | 
					 * memory_region_dispatch_read: perform a read directly to the specified
 | 
				
			||||||
 * MemoryRegion.
 | 
					 * MemoryRegion.
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user