From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43518) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1Sjq-0004da-4I for qemu-devel@nongnu.org; Mon, 22 Jul 2013 22:54:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1Sjp-0005GG-73 for qemu-devel@nongnu.org; Mon, 22 Jul 2013 22:54:10 -0400 Received: from cantor2.suse.de ([195.135.220.15]:49760 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1Sjp-0005G3-0S for qemu-devel@nongnu.org; Mon, 22 Jul 2013 22:54:09 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Tue, 23 Jul 2013 04:53:38 +0200 Message-Id: <1374548036-14471-7-git-send-email-afaerber@suse.de> In-Reply-To: <1374548036-14471-1-git-send-email-afaerber@suse.de> References: <1374548036-14471-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL 06/24] target-moxie: Implement CPUClass::set_pc() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Green , =?UTF-8?q?Andreas=20F=C3=A4rber?= This adds support for GDB's c addr (Continue) and s addr (Single Step). Prepares for dropping cpu_pc_from_tb(). Signed-off-by: Andreas F=C3=A4rber --- target-moxie/cpu.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/target-moxie/cpu.c b/target-moxie/cpu.c index 92ca594..91f6197 100644 --- a/target-moxie/cpu.c +++ b/target-moxie/cpu.c @@ -22,6 +22,13 @@ #include "migration/vmstate.h" #include "machine.h" =20 +static void moxie_cpu_set_pc(CPUState *cs, vaddr value) +{ + MoxieCPU *cpu =3D MOXIE_CPU(cs); + + cpu->env.pc =3D value; +} + static void moxie_cpu_reset(CPUState *s) { MoxieCPU *cpu =3D MOXIE_CPU(s); @@ -93,6 +100,7 @@ static void moxie_cpu_class_init(ObjectClass *oc, void= *data) =20 cc->do_interrupt =3D moxie_cpu_do_interrupt; cc->dump_state =3D moxie_cpu_dump_state; + cc->set_pc =3D moxie_cpu_set_pc; cpu_class_set_vmsd(cc, &vmstate_moxie_cpu); } =20 --=20 1.8.1.4