> On 2011-06-09 15:11:58, Ali Saidi wrote:
> > You can make it a control instruction -- that shouldn't cause any issues,
> > but making it non-serializing is nearly hopeless. HWREI changes the
> > processor state and effects translation among other things. All PAL code
> > instructions that exist before it in the pipe must be complete before other
> > instructions. This is especially true since we use ev5 pal code.
> >
> > I'm pretty sure that o3 does inst->mispredicted() on every instruction. I'm
> > not sure if this is any faster than first calling isControl() on it, but i
> > doubt it.
> >
OK thanks, does anyone else have any objections to hwrei as a control
instruction?
By speculate on hwrei, I meant less of the serialization aspect and more of the
speculation behind that instruction. We could possibly get the hwrei correct in
the BTB so it's not a 100% mispredict rate there.
You are right in that it's probably negligible performance difference from
checking isControl() v. inst->mispredicted(), but I got the inorder model to
cache the instruction schedules now so we can basically remove that check all
together. It's the difference between not calling inst->isControl() and calling
it that I'm referring to as wasteful.
- Korey
---
This is an automatically generated e-mail. To reply, visit:
http://reviews.m5sim.org/r/740/#review1315
---
On 2011-06-08 23:15:21, Korey Sewell wrote:
>
> ---
> This is an automatically generated e-mail. To reply, visit:
> http://reviews.m5sim.org/r/740/
> ---
>
> (Updated 2011-06-08 23:15:21)
>
>
> Review request for Default, Ali Saidi, Gabe Black, Steve Reinhardt, and
> Nathan Binkert.
>
>
> Summary
> ---
>
> alpha: make hwrei a control inst
> this always changes the PC and is basically an impromptu branch instruction.
> why
> not speculate on this instead of always be forced to mispredict/squash after
> the
> hwrei gets resolved?
>
> The InOrder model needs this marked as "isControl" so it knows to update the
> PC
> after the ALU executes it. If this isnt marked as control, then it's going to
> force the model to check the PC of every instruction at commit (what O3
> does?),
> and that would be a wasteful check for a very high percentage of instructions.
>
>
> Diffs
> -
>
> src/arch/alpha/isa/decoder.isa 77d12d8f7971
>
> Diff: http://reviews.m5sim.org/r/740/diff
>
>
> Testing
> ---
>
>
> Thanks,
>
> Korey
>
>
___
gem5-dev mailing list
gem5-dev@m5sim.org
http://m5sim.org/mailman/listinfo/gem5-dev