[Top] [All Lists]

Re: In r4k, where does PC point to?

To: karthikeyan natarajan <>
Subject: Re: In r4k, where does PC point to?
From: Ralf Baechle <>
Date: Mon, 19 Jan 2004 16:22:14 +0100
Cc: Dominic Sweetman <>,
In-reply-to: <>
Original-recipient: rfc822;
References: <> <>
User-agent: Mutt/1.4.1i
On Mon, Jan 19, 2004 at 03:14:03PM +0000, karthikeyan natarajan wrote:

> > Which is true, but perhaps a bit cryptic given the
> > question.
> > 
> > A MIPS CPU does not have a register called "PC".  In
> In the r4k user manual, it is mentioned that there is
> a special register PC in the core CPU (other than the 
> HI & LO special registers). Could you please let me 
> know the purpose of this register?

Obviously the CPU needs to know where to fetch the next instruction from
or for computing the destination address of branch and jump instructions
or the value to put into the programmer visible EPC and ErrorEPC registers
etc.  The PC register is an internal register that isn't visible to the


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