Branch prediction
- From: Muscipula <spamtrap@xxxxxxxxxx>
- Date: Tue, 26 Feb 2008 06:24:29 -0800 (PST)
There is something that is confusing about what I understand about
branch prediction. If the processor is reading ahead of the program
counter then it must be emulating the instructions at least and I find
that unusual.
Please correct me if I have got this right. But from what I know, when
the x86 processor is seeking ahead and reaches a branch it has a
problem. That is it doesn't know what the outcome of the condition
until the program counter gets there.
So, it emulates both paths from the branch until the program counter
gets there. When the processor is seeking ahead/emulating the future
instructions, what exactly is it doing with the code - p-code or
whatever.
There aint much documentation on processors these days like there used
to years back. Even Wikipedia does not have much to say.
I have a registered copy of A386 that I intend to use soon, but my
knowledge of 386> is not much. Can anybody recommend a book, something
like the equivalent of the 8086 book.
TIA
Muscipula
.
- Follow-Ups:
- Re: Branch prediction
- From: robertwessel2@xxxxxxxxx
- Re: Branch prediction
- Prev by Date: Re: Disk I/O, BIOS, dosemu, FreeDOS, linux host with Virtual Machines
- Next by Date: Re: Real mode int from protected mode and back
- Previous by thread: Re: spim-like x86 simulator
- Next by thread: Re: Branch prediction
- Index(es):
Relevant Pages
|