Deutsch English Français Italiano |
<vgsh98$tht0$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Thomas Koenig <tkoenig@netcologne.de> Newsgroups: comp.arch Subject: Re: Reverse engineering of Intel branch predictors Date: Mon, 11 Nov 2024 09:03:36 -0000 (UTC) Organization: A noiseless patient Spider Lines: 36 Message-ID: <vgsh98$tht0$1@dont-email.me> References: <vfbfn0$256vo$1@dont-email.me> <c517f562a19a0db2f3d945a1c56ee2e6@www.novabbs.org> <jwv1q002k2s.fsf-monnier+comp.arch@gnu.org> <a3d81b5c64ce058ad21f42a8081162cd@www.novabbs.org> Injection-Date: Mon, 11 Nov 2024 10:03:37 +0100 (CET) Injection-Info: dont-email.me; posting-host="6f1819f8854ba32d5f32a1a6bc0a426f"; logging-data="968608"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18dSjtt1TJ6nqHon+7sEnH+I0b9np5fWS0=" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:8ZSUNat4aDp5nmOfA++uFKAH3ew= Bytes: 1940 MitchAlsup1 <mitchalsup@aol.com> schrieb: > For example: The classical way to do dense switches is a LD of the > target > address and a jump to the target. This requires verifying the address of > the target. Whereas if you predict as JTT does, you verify by matching > the index number (which is known earlier and since the table is > read-only > you don't need to verify the target address. > > So, it is not that you don't predict, it is that the data used to > verify the prediction is more precise and available earlier. Hmm... just wondering. How does this handle switch(a) { case 1: case 3: case 4: case 7: /* Do something */ break; case 2: case 5: case 11: /* Do something else */ break; default: /* Something else entirely */ } Would the values 1,3,4 and 7 be considered different for prediciton purposes?