X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fsym_swap2.c;h=f67ca852bdd68a9d3203c3bcff8bd1a8e2f25433;hp=39466361122f7390f2a75b17dd1aa99d28d2e226;hb=571979dad8fc2138a7e11c4fe61e812a0a0b17d1;hpb=99af50a89f5eb27e7e1c84aba01d72c06edc229a diff --git a/palacios/src/devices/sym_swap2.c b/palacios/src/devices/sym_swap2.c index 3946636..f67ca85 100644 --- a/palacios/src/devices/sym_swap2.c +++ b/palacios/src/devices/sym_swap2.c @@ -571,7 +571,7 @@ static int connect_fn(struct guest_info * info, swap->active = 0; swap->cache_base_addr = (addr_t)V3_AllocPages(swap->cache_size / 4096); - swap->cache = (uint8_t *)V3_VAddr((void *)(swap->cache_base_addr)); + swap->cache = (uint8_t *)V3_VAddr((void *)(addr_t)(swap->cache_base_addr)); memset(swap->cache, 0, swap->cache_size); }