mirror of
https://github.com/qemu/qemu.git
synced 2024-12-05 17:53:36 +08:00
37677d7db3
Commit58ea30f514
"Clean up header guards that don't match their file name" messed up contrib/elf2dmp/qemu_elf.h and tests/migration/migration-test.h. It missed target/cris/opcode-cris.h and tests/uefi-test-tools/UefiTestToolsPkg/Include/Guid/BiosTablesTest.h due to the scripts/clean-header-guards.pl bug fixed in the previous commit. Commita8b991b52d
"Clean up ill-advised or unusual header guards" missed include/hw/xen/io/ring.h for the same reason. Commit3979fca4b6
"disas: Rename include/disas/bfd.h back to include/disas/dis-asm.h" neglected to update the guard symbol for the rename. Commita331c6d774
"semihosting: implement a semihosting console" created include/hw/semihosting/console.h with an ill-advised guard symbol. Clean them up. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20190604181618.19980-4-armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
36 lines
992 B
C
36 lines
992 B
C
/*
|
|
* Copyright (c) 2018 Red Hat, Inc. and/or its affiliates
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
* See the COPYING file in the top-level directory.
|
|
*/
|
|
|
|
#ifndef MIGRATION_TEST_H
|
|
#define MIGRATION_TEST_H
|
|
|
|
/* Common */
|
|
#define TEST_MEM_PAGE_SIZE 4096
|
|
|
|
/* x86 */
|
|
#define X86_TEST_MEM_START (1 * 1024 * 1024)
|
|
#define X86_TEST_MEM_END (100 * 1024 * 1024)
|
|
|
|
/* S390 */
|
|
#define S390_TEST_MEM_START (1 * 1024 * 1024)
|
|
#define S390_TEST_MEM_END (100 * 1024 * 1024)
|
|
|
|
/* PPC */
|
|
#define PPC_TEST_MEM_START (1 * 1024 * 1024)
|
|
#define PPC_TEST_MEM_END (100 * 1024 * 1024)
|
|
|
|
/* ARM */
|
|
#define ARM_TEST_MEM_START (0x40000000 + 1 * 1024 * 1024)
|
|
#define ARM_TEST_MEM_END (0x40000000 + 100 * 1024 * 1024)
|
|
#define ARM_MACH_VIRT_UART 0x09000000
|
|
/* AArch64 kernel load address is 0x40080000, and the test memory starts at
|
|
* 0x40100000. So the maximum allowable kernel size is 512KB.
|
|
*/
|
|
#define ARM_TEST_MAX_KERNEL_SIZE (512 * 1024)
|
|
|
|
#endif /* MIGRATION_TEST_H */
|