diff mbox

[v2,09/13] Use unsigned types for the 'len' argument of all memory read/write functions

Message ID 1456847859-4771-9-git-send-email-martin.galvan@tallertechnologies.com
State New
Headers show

Commit Message

Martin Galvan March 1, 2016, 3:57 p.m. UTC
---
 include/qom/cpu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.7.1
diff mbox

Patch

diff --git a/include/qom/cpu.h b/include/qom/cpu.h
index 1df7cb4..0d23e0a 100644
--- a/include/qom/cpu.h
+++ b/include/qom/cpu.h
@@ -148,7 +148,7 @@  typedef struct CPUClass {
                                 int is_write, int is_user, uintptr_t retaddr);
     bool (*virtio_is_big_endian)(CPUState *cpu);
     int (*memory_rw_debug)(CPUState *cpu, vaddr addr,
-                           uint8_t *buf, int len, bool is_write);
+                           uint8_t *buf, size_t len, bool is_write);
     void (*dump_state)(CPUState *cpu, FILE *f, fprintf_function cpu_fprintf,
                        int flags);
     void (*dump_statistics)(CPUState *cpu, FILE *f,