@@ -287,7 +287,8 @@ print_insn_s390 (bfd_vma memaddr, struct disassemble_info *info)
const struct s390_opcode *opcode;
const struct s390_opcode *opcode_end;
unsigned int value;
- int status, opsize, bufsize;
+ int status;
+ size_t opsize, bufsize;
char separator;
if (init_flag == 0)
@@ -427,7 +427,7 @@ static int virtio_ccw_cb(SubchDev *sch, CCW1 ccw)
VirtioCcwDevice *dev = sch->driver_data;
VirtIODevice *vdev = virtio_ccw_get_vdev(sch);
bool check_len;
- int len;
+ size_t len;
hwaddr hw_len;
VirtioThinintInfo *thinint;
@@ -422,7 +422,7 @@ static bool lowprot_enabled(const CPUS390XState *env)
* translate_pages: Translate a set of consecutive logical page addresses
* to absolute addresses
*/
-static int translate_pages(S390CPU *cpu, vaddr addr, int nr_pages,
+static int translate_pages(S390CPU *cpu, vaddr addr, size_t nr_pages,
target_ulong *pages, bool is_write)
{
bool lowprot = is_write && lowprot_enabled(&cpu->env);
@@ -466,7 +466,7 @@ static int translate_pages(S390CPU *cpu, vaddr addr, int nr_pages,
int s390_cpu_virt_mem_rw(S390CPU *cpu, vaddr laddr, uint8_t ar, void *hostbuf,
int len, bool is_write)
{
- int currlen, nr_pages, i;
+ size_t currlen, nr_pages, i;
target_ulong *pages;
int ret;