Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.arch > #32054

Re: (Execution) Termination bit, Alternation bit.

From anton@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups comp.arch
Subject Re: (Execution) Termination bit, Alternation bit.
Date 2015-12-21 16:22 +0000
Organization Institut fuer Computersprachen, Technische Universitaet Wien
Message-ID <2015Dec21.172230@mips.complang.tuwien.ac.at> (permalink)
References <df0ec$56759a3e$d47876e2$54535@news.ziggo.nl> <9Bldy.3723$Bz5.1578@fx04.iad> <864af$56760c5f$d47876e2$48630@news.ziggo.nl> <QHody.3724$Bz5.3354@fx04.iad> <87h9jd5wd7.fsf@news.bourguet.org>

Show all headers | View raw


Jean-Marc Bourguet <jm@bourguet.org> writes:
>Richard Damon <Richard@Damon-Family.org> writes:
>
>> It would be an unusual machine where you couldn't modify the return address
>> on the stack to change the address you return to.
>
>Doesn't that mess up branch prediction nowadays?

Yes, but the idea is to change the control flow of another thread,
which is going to mess up the return-stack branch prediction anyway.
Also changing memory in another core's cache is going to have a cost
of the same order as a branch misprediction or more; ok, you could be
lucky and it could be another thread on the same core, but in general
that operation is going to cost quite a bit.

- anton
-- 
M. Anton Ertl                    Some things have to be seen to be believed
anton@mips.complang.tuwien.ac.at Most things have to be believed to be seen
http://www.complang.tuwien.ac.at/anton/home.html

Back to comp.arch | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

(Execution) Termination bit, Alternation bit. "Skybuck Flying" <skybuck2000@hotmail.com> - 2015-12-19 18:56 +0100
  Re: (Execution) Termination bit, Alternation bit. Richard Damon <Richard@Damon-Family.org> - 2015-12-19 18:18 -0500
    Re: (Execution) Termination bit, Alternation bit. "Skybuck Flying" <skybuck2000@hotmail.com> - 2015-12-20 03:03 +0100
      Re: (Execution) Termination bit, Alternation bit. Richard Damon <Richard@Damon-Family.org> - 2015-12-19 21:50 -0500
        Re: (Execution) Termination bit, Alternation bit. Jean-Marc Bourguet <jm@bourguet.org> - 2015-12-20 09:59 +0100
          Re: (Execution) Termination bit, Alternation bit. Terje Mathisen <terje.mathisen@tmsw.no> - 2015-12-20 10:44 +0100
          Re: (Execution) Termination bit, Alternation bit. anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-12-21 16:22 +0000
        Re: (Execution) Termination bit, Alternation bit. "Skybuck Flying" <skybuck2000@hotmail.com> - 2015-12-20 12:25 +0100
          Re: (Execution) Termination bit, Alternation bit. "Chris M. Thomasson" <nospam@nospam.nospam> - 2015-12-20 14:20 -0800
            Re: (Execution) Termination bit, Alternation bit. "Skybuck Flying" <skybuck2000@hotmail.com> - 2015-12-21 13:40 +0100
              Re: (Execution) Termination bit, Alternation bit. Richard Damon <Richard@Damon-Family.org> - 2015-12-21 08:15 -0500
                Re: (Execution) Termination bit, Alternation bit. "Skybuck Flying" <skybuck2000@hotmail.com> - 2015-12-22 16:46 +0100

csiph-web