1 /* Copyright 2008-2019 Free Software Foundation, Inc.
3 This file is part of GDB.
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
20 /* Start a transaction. To avoid the need for FPR save/restore, assume
21 that no FP- or vector registers are modified within the transaction.
22 Thus invoke TBEGIN with the "allow floating-point operation" flag set
23 to zero, which forces a transaction abort when hitting an FP- or vector
24 instruction. Also assume that TBEGIN will eventually succeed, so just
25 retry indefinitely. */
31 ( "1: .byte 0xe5,0x60,0x00,0x00,0xff,0x00\n"
33 : /* no return value */
38 /* End a transaction. */
44 ( " .byte 0xb2,0xf8,0x00,0x00"
45 : /* no return value */
51 try_transaction (void)
58 crash_in_transaction (void)
68 main (int argc
, char *argv
[])
71 crash_in_transaction ();