Message ID | 9f804e53-b4a5-4f72-9260-cdacf4fb60c5@BN1AFFO11FD045.protection.gbl |
---|---|
State | New |
Headers | show |
On 06/17/2014 07:12 PM, Ajit Kumar Agarwal wrote:
> Sorry Pedro. The ChangeLog was missing. Could you please review and let me know if its okay.
Yes, looks OK to me.
Michael is the microblaze maintainer so please wait for
his comments/approval.
Thanks,
On 06/17/14 11:12, Ajit Kumar Agarwal wrote: > Sorry Pedro. The ChangeLog was missing. Could you please review and let me know if its okay. > > [Patch, microblaze]: Use target_read_code in microblaze_fetch_instruction > > This patch uses target_read_code instead of target_read_memory in > microblaze_fetch instruction in order to use cache memory accesses > requested in target_read_code. > > ChangeLog: > 2014-06-17 Ajit Agarwal <ajitkum@xilinx.com> > > * microblaze-tdep.c (microblaze_fetch_instruction): Use of > target_read_code. > > Signed-off-by:Ajit Agarwal ajitkum@xilinx.com > > --- > gdb/microblaze-tdep.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/gdb/microblaze-tdep.c b/gdb/microblaze-tdep.c > index 14c1b52..4e5b2d5 100644 > --- a/gdb/microblaze-tdep.c > +++ b/gdb/microblaze-tdep.c > @@ -126,7 +126,7 @@ microblaze_fetch_instruction (CORE_ADDR pc) > gdb_byte buf[4]; > > /* If we can't read the instruction at PC, return zero. */ > - if (target_read_memory (pc, buf, sizeof (buf))) > + if (target_read_code (pc, buf, sizeof (buf))) > return 0; > > return extract_unsigned_integer (buf, 4, byte_order); > Committed 3421196.
diff --git a/gdb/microblaze-tdep.c b/gdb/microblaze-tdep.c index 14c1b52..4e5b2d5 100644 --- a/gdb/microblaze-tdep.c +++ b/gdb/microblaze-tdep.c @@ -126,7 +126,7 @@ microblaze_fetch_instruction (CORE_ADDR pc) gdb_byte buf[4]; /* If we can't read the instruction at PC, return zero. */ - if (target_read_memory (pc, buf, sizeof (buf))) + if (target_read_code (pc, buf, sizeof (buf))) return 0; return extract_unsigned_integer (buf, 4, byte_order); -- 1.7.1 Thanks & Regards Ajit -----Original Message----- From: Ajit Kumar Agarwal Sent: Tuesday, June 17, 2014 11:40 PM To: 'Pedro Alves'; gdb-patches@sourceware.org Cc: Michael Eager; Vinod Kathail; Vidhumouli Hunsigida; Nagaraju Mekala Subject: RE: [Patch, microblaze]: Communicate in larger blocks with the target. Hello Pedro: Review feedback are incorporated. Could you please review and let me know if its okay. [Patch, microblaze]: Use target_read_code in microblaze_fetch_instruction This patch uses target_read_code instead of target_read_memory in microblaze_fetch instruction in order to use cache memory accesses requested in target_read_code. ChangeLog: 2014-06-17 Ajit Agarwal <ajitkum@xilinx.com> --- gdb/microblaze-tdep.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/gdb/microblaze-tdep.c b/gdb/microblaze-tdep.c index 14c1b52..4e5b2d5 100644 --- a/gdb/microblaze-tdep.c +++ b/gdb/microblaze-tdep.c @@ -126,7 +126,7 @@ microblaze_fetch_instruction (CORE_ADDR pc) gdb_byte buf[4]; /* If we can't read the instruction at PC, return zero. */ - if (target_read_memory (pc, buf, sizeof (buf))) + if (target_read_code (pc, buf, sizeof (buf))) return 0; return extract_unsigned_integer (buf, 4, byte_order);