linux-mips
[Top] [All Lists]

Re: Bug in get_insn_opcode.

To: Carsten Langgaard <carstenl@mips.com>
Subject: Re: Bug in get_insn_opcode.
From: Jun Sun <jsun@mvista.com>
Date: Fri, 2 Mar 2001 10:34:49 -0800
Cc: linux-mips@oss.sgi.com
In-reply-to: <3A9FD0D0.887E372F@mips.com>; from carstenl@mips.com on Fri, Mar 02, 2001 at 05:56:48PM +0100
References: <3A9FD0D0.887E372F@mips.com>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.2.5i
On Fri, Mar 02, 2001 at 05:56:48PM +0100, Carsten Langgaard wrote:
> There is a bug in the function get_insn_opcode in traps.c
> 
> As 'epc' is an int pointer here, it should only be increased by 1 (4
> byte) and not by 4 (4*4 = 16 bytes).
> See the patch below.
> 
> /Carsten
>

Good catch!

I am surprised that trap on branch delay slot is rare that we only discover
this bug now ...

Jun 

<Prev in Thread] Current Thread [Next in Thread>