From patchwork Wed Apr 11 18:56:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 897368 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=vivier.eu Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40LtwW32TYz9s1l for ; Thu, 12 Apr 2018 05:12:59 +1000 (AEST) Received: from localhost ([::1]:48843 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6LAv-000327-BF for incoming@patchwork.ozlabs.org; Wed, 11 Apr 2018 15:12:57 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6Kvx-0005wX-3W for qemu-devel@nongnu.org; Wed, 11 Apr 2018 14:57:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f6Kvt-0007nB-8A for qemu-devel@nongnu.org; Wed, 11 Apr 2018 14:57:29 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:55805) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f6Kvs-0007mZ-Py; Wed, 11 Apr 2018 14:57:25 -0400 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.183]) with ESMTPSA (Nemesis) id 0MLfrX-1f63oP30TL-000vMZ; Wed, 11 Apr 2018 20:57:07 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Wed, 11 Apr 2018 20:56:33 +0200 Message-Id: <20180411185651.21351-2-laurent@vivier.eu> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180411185651.21351-1-laurent@vivier.eu> References: <20180411185651.21351-1-laurent@vivier.eu> X-Provags-ID: V03:K1:TdgEf5NdmMq3QVT9MYsvE7dehz4gRTN8ECYnjjRnYe9CRQVp6+r d5SGBznAgBnLhrcLFQ9b2Df384rLPP6IFtP6x0p82tpr68JKeipDXpdgOVduL0TV2416UWi s1fMWmZM56QXvvbbw6GvZ3RAW6JbPARZW6lcQ/6fACWBk4rlL1asVv3ILK/Tihn5FR8VPwu 7wXBzganAAZ2mKtDA4oeA== X-UI-Out-Filterresults: notjunk:1; V01:K0:6ymgDHopSVg=:KKD2E7ajtgkHgiVp0aBQeW KI/I1tbh4xWbhsum6a3l53FskhRqbElck973WUUNfSQKtd6yMNoR3DjWKvm0TlxMTUghNVnG2 MTDK5KFm6L4ItPGsLiOIhhixAFQra9BLbFyXmMAs1clcwivSTB/02jo2EQ4y3Hr/Y28mHPI67 i2wRBB3ZE1V2kxGzFflg7UzSzFKooa9RBBXiXtEcxeJV01HzQaVXfyBKM/uVpO4YL92aQKGEM j6DQawdRkn+w7rsZEIuI3HaZNrBFHvyJYxeXkVXJmWLFtmUZP+H2uVzGCnWBpkM7Eiel1bH0u 37EuuN8G23yvZrwRNzXI3WMZhEU+5i3/6BlqiebMyabObt1pm9u4o33y/5RelvJBULr0h0gk/ J/mYzcugiH7m/o7XfjCLGovOLxUwmCbPWo9/tSlgxELOHf45Rdw0Gl8jM6jjWsIOC7ytOZPG4 jjgg5evETCH6LUdIVlVKm2khnX4th7borQn5RKDLSbTNJWJUeJjn2LxwDbQ//kBJc0rdJBoFZ FvOqYN2peuLz6m2zkG8WyXHSZfhbKbUIet8Hcz4FVOBTj/7vSP2RmgQ2UuXZ3ZPzTJ18n+iCL DnywLNsTOOBo2Es3ywvroSEwaJewuJqjVDg/V1Nv0xcaMldirgO/wMRC0Bvnb9tPXrmAtMl2D XzgJE7okffWNVxnB9kUw7/GGnpTF/bkMSTvnFppR3ZHR3bmNsJvHPgaM9iqHsq5PZqYioMt8X Uq2+7BWoyVB8c8jZ4Rl6Vtj2Y8QJJuCrczAdvw== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.72.192.73 Subject: [Qemu-devel] [PATCH for 2.13 v2 01/19] linux-user: create a dummy per arch cpu_loop.c X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Cornelia Huck , Riku Voipio , Richard Henderson , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Laurent Vivier , qemu-s390x@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Create a cpu_loop-common.h for future use by these new files and use it in the existing main.c Introduce target_cpu_copy_regs(): declare the function in cpu_loop-common.h and an empty function for each target, to move all the cpu_loop prologues to this function. Signed-off-by: Laurent Vivier Reviewed-by: Richard Henderson --- linux-user/Makefile.objs | 3 ++- linux-user/aarch64/cpu_loop.c | 26 ++++++++++++++++++++++++++ linux-user/alpha/cpu_loop.c | 26 ++++++++++++++++++++++++++ linux-user/arm/cpu_loop.c | 26 ++++++++++++++++++++++++++ linux-user/cpu_loop-common.h | 37 +++++++++++++++++++++++++++++++++++++ linux-user/cris/cpu_loop.c | 26 ++++++++++++++++++++++++++ linux-user/hppa/cpu_loop.c | 26 ++++++++++++++++++++++++++ linux-user/i386/cpu_loop.c | 26 ++++++++++++++++++++++++++ linux-user/m68k/cpu_loop.c | 26 ++++++++++++++++++++++++++ linux-user/main.c | 17 +++-------------- linux-user/microblaze/cpu_loop.c | 26 ++++++++++++++++++++++++++ linux-user/mips/cpu_loop.c | 26 ++++++++++++++++++++++++++ linux-user/mips64/cpu_loop.c | 26 ++++++++++++++++++++++++++ linux-user/nios2/cpu_loop.c | 26 ++++++++++++++++++++++++++ linux-user/openrisc/cpu_loop.c | 26 ++++++++++++++++++++++++++ linux-user/ppc/cpu_loop.c | 26 ++++++++++++++++++++++++++ linux-user/riscv/cpu_loop.c | 26 ++++++++++++++++++++++++++ linux-user/s390x/cpu_loop.c | 26 ++++++++++++++++++++++++++ linux-user/sh4/cpu_loop.c | 26 ++++++++++++++++++++++++++ linux-user/sparc/cpu_loop.c | 26 ++++++++++++++++++++++++++ linux-user/sparc64/cpu_loop.c | 26 ++++++++++++++++++++++++++ linux-user/tilegx/cpu_loop.c | 26 ++++++++++++++++++++++++++ linux-user/x86_64/cpu_loop.c | 26 ++++++++++++++++++++++++++ linux-user/xtensa/cpu_loop.c | 26 ++++++++++++++++++++++++++ 24 files changed, 588 insertions(+), 15 deletions(-) create mode 100644 linux-user/aarch64/cpu_loop.c create mode 100644 linux-user/alpha/cpu_loop.c create mode 100644 linux-user/arm/cpu_loop.c create mode 100644 linux-user/cpu_loop-common.h create mode 100644 linux-user/cris/cpu_loop.c create mode 100644 linux-user/hppa/cpu_loop.c create mode 100644 linux-user/i386/cpu_loop.c create mode 100644 linux-user/m68k/cpu_loop.c create mode 100644 linux-user/microblaze/cpu_loop.c create mode 100644 linux-user/mips/cpu_loop.c create mode 100644 linux-user/mips64/cpu_loop.c create mode 100644 linux-user/nios2/cpu_loop.c create mode 100644 linux-user/openrisc/cpu_loop.c create mode 100644 linux-user/ppc/cpu_loop.c create mode 100644 linux-user/riscv/cpu_loop.c create mode 100644 linux-user/s390x/cpu_loop.c create mode 100644 linux-user/sh4/cpu_loop.c create mode 100644 linux-user/sparc/cpu_loop.c create mode 100644 linux-user/sparc64/cpu_loop.c create mode 100644 linux-user/tilegx/cpu_loop.c create mode 100644 linux-user/x86_64/cpu_loop.c create mode 100644 linux-user/xtensa/cpu_loop.c diff --git a/linux-user/Makefile.objs b/linux-user/Makefile.objs index 811a7f5ce5..59a5c17354 100644 --- a/linux-user/Makefile.objs +++ b/linux-user/Makefile.objs @@ -1,6 +1,7 @@ obj-y = main.o syscall.o strace.o mmap.o signal.o \ elfload.o linuxload.o uaccess.o uname.o \ - safe-syscall.o $(TARGET_ABI_DIR)/signal.o + safe-syscall.o $(TARGET_ABI_DIR)/signal.o \ + $(TARGET_ABI_DIR)/cpu_loop.o obj-$(TARGET_HAS_BFLT) += flatload.o obj-$(TARGET_I386) += vm86.o diff --git a/linux-user/aarch64/cpu_loop.c b/linux-user/aarch64/cpu_loop.c new file mode 100644 index 0000000000..b7700a5561 --- /dev/null +++ b/linux-user/aarch64/cpu_loop.c @@ -0,0 +1,26 @@ +/* + * qemu user cpu loop + * + * Copyright (c) 2003-2008 Fabrice Bellard + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "qemu/osdep.h" +#include "qemu.h" +#include "cpu_loop-common.h" + +void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs) +{ +} diff --git a/linux-user/alpha/cpu_loop.c b/linux-user/alpha/cpu_loop.c new file mode 100644 index 0000000000..b7700a5561 --- /dev/null +++ b/linux-user/alpha/cpu_loop.c @@ -0,0 +1,26 @@ +/* + * qemu user cpu loop + * + * Copyright (c) 2003-2008 Fabrice Bellard + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "qemu/osdep.h" +#include "qemu.h" +#include "cpu_loop-common.h" + +void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs) +{ +} diff --git a/linux-user/arm/cpu_loop.c b/linux-user/arm/cpu_loop.c new file mode 100644 index 0000000000..b7700a5561 --- /dev/null +++ b/linux-user/arm/cpu_loop.c @@ -0,0 +1,26 @@ +/* + * qemu user cpu loop + * + * Copyright (c) 2003-2008 Fabrice Bellard + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "qemu/osdep.h" +#include "qemu.h" +#include "cpu_loop-common.h" + +void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs) +{ +} diff --git a/linux-user/cpu_loop-common.h b/linux-user/cpu_loop-common.h new file mode 100644 index 0000000000..ffe3fe9ad5 --- /dev/null +++ b/linux-user/cpu_loop-common.h @@ -0,0 +1,37 @@ +/* + * qemu user cpu loop + * + * Copyright (c) 2003-2008 Fabrice Bellard + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef CPU_LOOP_COMMON_H +#define CPU_LOOP_COMMON_H + +#include "exec/log.h" + +#define EXCP_DUMP(env, fmt, ...) \ +do { \ + CPUState *cs = ENV_GET_CPU(env); \ + fprintf(stderr, fmt , ## __VA_ARGS__); \ + cpu_dump_state(cs, stderr, fprintf, 0); \ + if (qemu_log_separate()) { \ + qemu_log(fmt, ## __VA_ARGS__); \ + log_cpu_state(cs, 0); \ + } \ +} while (0) + +void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs); +#endif diff --git a/linux-user/cris/cpu_loop.c b/linux-user/cris/cpu_loop.c new file mode 100644 index 0000000000..b7700a5561 --- /dev/null +++ b/linux-user/cris/cpu_loop.c @@ -0,0 +1,26 @@ +/* + * qemu user cpu loop + * + * Copyright (c) 2003-2008 Fabrice Bellard + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "qemu/osdep.h" +#include "qemu.h" +#include "cpu_loop-common.h" + +void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs) +{ +} diff --git a/linux-user/hppa/cpu_loop.c b/linux-user/hppa/cpu_loop.c new file mode 100644 index 0000000000..b7700a5561 --- /dev/null +++ b/linux-user/hppa/cpu_loop.c @@ -0,0 +1,26 @@ +/* + * qemu user cpu loop + * + * Copyright (c) 2003-2008 Fabrice Bellard + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "qemu/osdep.h" +#include "qemu.h" +#include "cpu_loop-common.h" + +void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs) +{ +} diff --git a/linux-user/i386/cpu_loop.c b/linux-user/i386/cpu_loop.c new file mode 100644 index 0000000000..b7700a5561 --- /dev/null +++ b/linux-user/i386/cpu_loop.c @@ -0,0 +1,26 @@ +/* + * qemu user cpu loop + * + * Copyright (c) 2003-2008 Fabrice Bellard + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "qemu/osdep.h" +#include "qemu.h" +#include "cpu_loop-common.h" + +void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs) +{ +} diff --git a/linux-user/m68k/cpu_loop.c b/linux-user/m68k/cpu_loop.c new file mode 100644 index 0000000000..b7700a5561 --- /dev/null +++ b/linux-user/m68k/cpu_loop.c @@ -0,0 +1,26 @@ +/* + * qemu user cpu loop + * + * Copyright (c) 2003-2008 Fabrice Bellard + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "qemu/osdep.h" +#include "qemu.h" +#include "cpu_loop-common.h" + +void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs) +{ +} diff --git a/linux-user/main.c b/linux-user/main.c index 8907a84114..09045f877c 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -33,9 +33,9 @@ #include "qemu/timer.h" #include "qemu/envlist.h" #include "elf.h" -#include "exec/log.h" #include "trace/control.h" #include "target_elf.h" +#include "cpu_loop-common.h" char *exec_path; @@ -50,17 +50,6 @@ unsigned long mmap_min_addr; unsigned long guest_base; int have_guest_base; -#define EXCP_DUMP(env, fmt, ...) \ -do { \ - CPUState *cs = ENV_GET_CPU(env); \ - fprintf(stderr, fmt , ## __VA_ARGS__); \ - cpu_dump_state(cs, stderr, fprintf, 0); \ - if (qemu_log_separate()) { \ - qemu_log(fmt, ## __VA_ARGS__); \ - log_cpu_state(cs, 0); \ - } \ -} while (0) - /* * When running 32-on-64 we should make sure we can fit all of the possible * guest address space into a contiguous chunk of virtual host memory. @@ -4736,6 +4725,8 @@ int main(int argc, char **argv, char **envp) tcg_prologue_init(tcg_ctx); tcg_region_init(); + target_cpu_copy_regs(env, regs); + #if defined(TARGET_I386) env->cr[0] = CR0_PG_MASK | CR0_WP_MASK | CR0_PE_MASK; env->hflags |= HF_PE_MASK | HF_CPL_MASK; @@ -5125,8 +5116,6 @@ int main(int argc, char **argv, char **envp) env->sregs[WINDOW_START] = regs->windowstart; env->pc = regs->pc; } -#else -#error unsupported target CPU #endif #if defined(TARGET_ARM) || defined(TARGET_M68K) diff --git a/linux-user/microblaze/cpu_loop.c b/linux-user/microblaze/cpu_loop.c new file mode 100644 index 0000000000..b7700a5561 --- /dev/null +++ b/linux-user/microblaze/cpu_loop.c @@ -0,0 +1,26 @@ +/* + * qemu user cpu loop + * + * Copyright (c) 2003-2008 Fabrice Bellard + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "qemu/osdep.h" +#include "qemu.h" +#include "cpu_loop-common.h" + +void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs) +{ +} diff --git a/linux-user/mips/cpu_loop.c b/linux-user/mips/cpu_loop.c new file mode 100644 index 0000000000..b7700a5561 --- /dev/null +++ b/linux-user/mips/cpu_loop.c @@ -0,0 +1,26 @@ +/* + * qemu user cpu loop + * + * Copyright (c) 2003-2008 Fabrice Bellard + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "qemu/osdep.h" +#include "qemu.h" +#include "cpu_loop-common.h" + +void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs) +{ +} diff --git a/linux-user/mips64/cpu_loop.c b/linux-user/mips64/cpu_loop.c new file mode 100644 index 0000000000..b7700a5561 --- /dev/null +++ b/linux-user/mips64/cpu_loop.c @@ -0,0 +1,26 @@ +/* + * qemu user cpu loop + * + * Copyright (c) 2003-2008 Fabrice Bellard + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "qemu/osdep.h" +#include "qemu.h" +#include "cpu_loop-common.h" + +void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs) +{ +} diff --git a/linux-user/nios2/cpu_loop.c b/linux-user/nios2/cpu_loop.c new file mode 100644 index 0000000000..b7700a5561 --- /dev/null +++ b/linux-user/nios2/cpu_loop.c @@ -0,0 +1,26 @@ +/* + * qemu user cpu loop + * + * Copyright (c) 2003-2008 Fabrice Bellard + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "qemu/osdep.h" +#include "qemu.h" +#include "cpu_loop-common.h" + +void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs) +{ +} diff --git a/linux-user/openrisc/cpu_loop.c b/linux-user/openrisc/cpu_loop.c new file mode 100644 index 0000000000..b7700a5561 --- /dev/null +++ b/linux-user/openrisc/cpu_loop.c @@ -0,0 +1,26 @@ +/* + * qemu user cpu loop + * + * Copyright (c) 2003-2008 Fabrice Bellard + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "qemu/osdep.h" +#include "qemu.h" +#include "cpu_loop-common.h" + +void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs) +{ +} diff --git a/linux-user/ppc/cpu_loop.c b/linux-user/ppc/cpu_loop.c new file mode 100644 index 0000000000..b7700a5561 --- /dev/null +++ b/linux-user/ppc/cpu_loop.c @@ -0,0 +1,26 @@ +/* + * qemu user cpu loop + * + * Copyright (c) 2003-2008 Fabrice Bellard + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "qemu/osdep.h" +#include "qemu.h" +#include "cpu_loop-common.h" + +void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs) +{ +} diff --git a/linux-user/riscv/cpu_loop.c b/linux-user/riscv/cpu_loop.c new file mode 100644 index 0000000000..b7700a5561 --- /dev/null +++ b/linux-user/riscv/cpu_loop.c @@ -0,0 +1,26 @@ +/* + * qemu user cpu loop + * + * Copyright (c) 2003-2008 Fabrice Bellard + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "qemu/osdep.h" +#include "qemu.h" +#include "cpu_loop-common.h" + +void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs) +{ +} diff --git a/linux-user/s390x/cpu_loop.c b/linux-user/s390x/cpu_loop.c new file mode 100644 index 0000000000..b7700a5561 --- /dev/null +++ b/linux-user/s390x/cpu_loop.c @@ -0,0 +1,26 @@ +/* + * qemu user cpu loop + * + * Copyright (c) 2003-2008 Fabrice Bellard + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "qemu/osdep.h" +#include "qemu.h" +#include "cpu_loop-common.h" + +void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs) +{ +} diff --git a/linux-user/sh4/cpu_loop.c b/linux-user/sh4/cpu_loop.c new file mode 100644 index 0000000000..b7700a5561 --- /dev/null +++ b/linux-user/sh4/cpu_loop.c @@ -0,0 +1,26 @@ +/* + * qemu user cpu loop + * + * Copyright (c) 2003-2008 Fabrice Bellard + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "qemu/osdep.h" +#include "qemu.h" +#include "cpu_loop-common.h" + +void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs) +{ +} diff --git a/linux-user/sparc/cpu_loop.c b/linux-user/sparc/cpu_loop.c new file mode 100644 index 0000000000..b7700a5561 --- /dev/null +++ b/linux-user/sparc/cpu_loop.c @@ -0,0 +1,26 @@ +/* + * qemu user cpu loop + * + * Copyright (c) 2003-2008 Fabrice Bellard + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "qemu/osdep.h" +#include "qemu.h" +#include "cpu_loop-common.h" + +void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs) +{ +} diff --git a/linux-user/sparc64/cpu_loop.c b/linux-user/sparc64/cpu_loop.c new file mode 100644 index 0000000000..b7700a5561 --- /dev/null +++ b/linux-user/sparc64/cpu_loop.c @@ -0,0 +1,26 @@ +/* + * qemu user cpu loop + * + * Copyright (c) 2003-2008 Fabrice Bellard + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "qemu/osdep.h" +#include "qemu.h" +#include "cpu_loop-common.h" + +void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs) +{ +} diff --git a/linux-user/tilegx/cpu_loop.c b/linux-user/tilegx/cpu_loop.c new file mode 100644 index 0000000000..b7700a5561 --- /dev/null +++ b/linux-user/tilegx/cpu_loop.c @@ -0,0 +1,26 @@ +/* + * qemu user cpu loop + * + * Copyright (c) 2003-2008 Fabrice Bellard + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "qemu/osdep.h" +#include "qemu.h" +#include "cpu_loop-common.h" + +void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs) +{ +} diff --git a/linux-user/x86_64/cpu_loop.c b/linux-user/x86_64/cpu_loop.c new file mode 100644 index 0000000000..b7700a5561 --- /dev/null +++ b/linux-user/x86_64/cpu_loop.c @@ -0,0 +1,26 @@ +/* + * qemu user cpu loop + * + * Copyright (c) 2003-2008 Fabrice Bellard + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "qemu/osdep.h" +#include "qemu.h" +#include "cpu_loop-common.h" + +void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs) +{ +} diff --git a/linux-user/xtensa/cpu_loop.c b/linux-user/xtensa/cpu_loop.c new file mode 100644 index 0000000000..b7700a5561 --- /dev/null +++ b/linux-user/xtensa/cpu_loop.c @@ -0,0 +1,26 @@ +/* + * qemu user cpu loop + * + * Copyright (c) 2003-2008 Fabrice Bellard + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "qemu/osdep.h" +#include "qemu.h" +#include "cpu_loop-common.h" + +void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs) +{ +}