spapr: Fix ibm, associativity for memory nodes
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Thu, 3 Jul 2014 03:10:07 +0000 (13:10 +1000)
committerAlexander Graf <agraf@suse.de>
Mon, 8 Sep 2014 10:50:48 +0000 (12:50 +0200)
We want the associtivity lists of memory and CPU nodes to match but
memory nodes have incorrect domain#3 which is zero for CPU so they won't
match.

This clears domain#3 in the list to match CPUs associtivity lists.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/spapr.c

index 1623805..12dbf1b 100644 (file)
@@ -653,7 +653,7 @@ static void spapr_populate_memory_node(void *fdt, int nodeid, hwaddr start,
     uint32_t associativity[] = {
         cpu_to_be32(0x4), /* length */
         cpu_to_be32(0x0), cpu_to_be32(0x0),
-        cpu_to_be32(nodeid), cpu_to_be32(nodeid)
+        cpu_to_be32(0x0), cpu_to_be32(nodeid)
     };
     char mem_name[32];
     uint64_t mem_reg_property[2];