Commit 96d0e26c authored by Wanlong Gao's avatar Wanlong Gao Committed by Michael S. Tsirkin
Browse files

NUMA: move numa related code to new file numa.c

parent edd8db87
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -119,7 +119,7 @@ endif #CONFIG_BSD_USER
#########################################################
# System emulator target
ifdef CONFIG_SOFTMMU
obj-y += arch_init.o cpus.o monitor.o gdbstub.o balloon.o ioport.o
obj-y += arch_init.o cpus.o monitor.o gdbstub.o balloon.o ioport.o numa.o
obj-y += qtest.o
obj-y += hw/
obj-$(CONFIG_FDT) += device_tree.o
+0 −14
Original line number Diff line number Diff line
@@ -1312,20 +1312,6 @@ static void tcg_exec_all(void)
    exit_request = 0;
}

void set_numa_modes(void)
{
    CPUState *cpu;
    int i;

    CPU_FOREACH(cpu) {
        for (i = 0; i < nb_numa_nodes; i++) {
            if (test_bit(cpu->cpu_index, node_cpumask[i])) {
                cpu->numa_node = i;
            }
        }
    }
}

void list_cpus(FILE *f, fprintf_function cpu_fprintf, const char *optarg)
{
    /* XXX: implement xxx_cpu_list for targets that still miss it */
+0 −2
Original line number Diff line number Diff line
@@ -297,8 +297,6 @@ CPUArchState *cpu_copy(CPUArchState *env);

/* memory API */

extern ram_addr_t ram_size;

/* RAM is pre-allocated and passed into qemu_ram_alloc_from_ptr */
#define RAM_PREALLOC_MASK   (1 << 0)

+2 −0
Original line number Diff line number Diff line
@@ -45,6 +45,8 @@ typedef uintptr_t ram_addr_t;
#  define RAM_ADDR_FMT "%" PRIxPTR
#endif

extern ram_addr_t ram_size;

/* memory API */

typedef void CPUWriteMemoryFunc(void *opaque, hwaddr addr, uint32_t value);
+0 −1
Original line number Diff line number Diff line
@@ -23,7 +23,6 @@ extern int smp_threads;
#define smp_threads 1
#endif

void set_numa_modes(void);
void list_cpus(FILE *f, fprintf_function cpu_fprintf, const char *optarg);

#endif
Loading