public inbox for sid@sourceware.org
 help / color / mirror / Atom feed
From: Thiemo Seufer <ths@networkno.de>
To: sid@sources.redhat.com
Subject: [PATCH] Fix bochs build failure with g++ 4.1
Date: Tue, 11 Jul 2006 14:31:00 -0000	[thread overview]
Message-ID: <20060711143050.GB1622@networkno.de> (raw)

Hello All,

the appended patch fixes a build failure with g++ 4.1.


Thiemo


2006-07-11  Thiemo Seufer  <ths@networkno.de>

	* cpu/sid-x86-cpu-wrapper.h, cpu/sid-x86-cpu-wrapper.h (get_pc):
	Implement function.

Index: sid/component/bochs/cpu/sid-x86-cpu-wrapper.cc
===================================================================
RCS file: /cvs/src/src/sid/component/bochs/cpu/sid-x86-cpu-wrapper.cc,v
retrieving revision 1.2
diff -u -p -r1.2 sid-x86-cpu-wrapper.cc
--- sid/component/bochs/cpu/sid-x86-cpu-wrapper.cc	4 Mar 2002 23:33:01 -0000	1.2
+++ sid/component/bochs/cpu/sid-x86-cpu-wrapper.cc	11 Jul 2006 12:51:58 -0000
@@ -167,6 +167,12 @@ x86_cpu::set_pc (sid::host_int_4 value)
   bx_cpu.eip = value - bx_cpu.sregs[BX_SEG_REG_CS].cache.u.segment.base;
 }
 
+sid::host_int_4
+x86_cpu::get_pc (void)
+{
+  return bx_cpu.eip;
+}
+
 string
 x86_cpu::dbg_get_reg(unsigned int reg)
 {
Index: sid/component/bochs/cpu/sid-x86-cpu-wrapper.h
===================================================================
RCS file: /cvs/src/src/sid/component/bochs/cpu/sid-x86-cpu-wrapper.h,v
retrieving revision 1.2
diff -u -p -r1.2 sid-x86-cpu-wrapper.h
--- sid/component/bochs/cpu/sid-x86-cpu-wrapper.h	4 Mar 2002 23:33:01 -0000	1.2
+++ sid/component/bochs/cpu/sid-x86-cpu-wrapper.h	11 Jul 2006 12:51:59 -0000
@@ -66,6 +66,7 @@ public:
   void reset ();
   void flush_icache ();
   void set_pc (sid::host_int_4 value);
+  sid::host_int_4 get_pc (void);
   string dbg_get_reg(unsigned int);
   component::status dbg_set_reg(unsigned int, const string &);
 

                 reply	other threads:[~2006-07-11 14:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060711143050.GB1622@networkno.de \
    --to=ths@networkno.de \
    --cc=sid@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).