• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

修訂454de2ee151958e0c45d4ed0f3e496156e29d3a2 (tree)
時間2015-07-14 20:06:33
作者Nick Clifton <nickc@redh...>
CommiterNick Clifton

Log Message

Remove extraneous whitespace from ARM sim sources.

* armcopro.c: Remove extraneous whitespace.
* armdefs.h: Likewise.
* armfpe.h: Likewise.
* arminit.c: Likewise.
* armopts.h: Likewise.
* armos.c: Likewise.
* armos.h: Likewise.
* armrdi.c: Likewise.
* armsupp.c: Likewise.
* armvirt.c: Likewise.
* bag.c: Likewise.
* bag.h: Likewise.
* communicate.c: Likewise.
* communicate.h: Likewise.
* dbg_conf.h: Likewise.
* dbg_cp.h: Likewise.
* dbg_hif.h: Likewise.
* dbg_rdi.h: Likewise.
* gdbhost.c: Likewise.
* gdbhost.h: Likewise.
* iwmmxt.c: Likewise.
* iwmmxt.h: Likewise.
* kid.c: Likewise.
* main.c: Likewise.
* maverick.c: Likewise.
* parent.c: Likewise.
* thumbemu.c: Likewise.
* wrapper.c: Likewise.

Change Summary

差異

--- a/sim/arm/ChangeLog
+++ b/sim/arm/ChangeLog
@@ -1,3 +1,34 @@
1+2015-07-14 Nick Clifton <nickc@redhat.com>
2+
3+ * armcopro.c: Remove extraneous whitespace.
4+ * armdefs.h: Likewise.
5+ * armfpe.h: Likewise.
6+ * arminit.c: Likewise.
7+ * armopts.h: Likewise.
8+ * armos.c: Likewise.
9+ * armos.h: Likewise.
10+ * armrdi.c: Likewise.
11+ * armsupp.c: Likewise.
12+ * armvirt.c: Likewise.
13+ * bag.c: Likewise.
14+ * bag.h: Likewise.
15+ * communicate.c: Likewise.
16+ * communicate.h: Likewise.
17+ * dbg_conf.h: Likewise.
18+ * dbg_cp.h: Likewise.
19+ * dbg_hif.h: Likewise.
20+ * dbg_rdi.h: Likewise.
21+ * gdbhost.c: Likewise.
22+ * gdbhost.h: Likewise.
23+ * iwmmxt.c: Likewise.
24+ * iwmmxt.h: Likewise.
25+ * kid.c: Likewise.
26+ * main.c: Likewise.
27+ * maverick.c: Likewise.
28+ * parent.c: Likewise.
29+ * thumbemu.c: Likewise.
30+ * wrapper.c: Likewise.
31+
132 2015-07-02 Nick Clifton <nickc@redhat.com>
233
334 * Makefile.in (SIM_EXTRA_CFLAGS): Revert previous delta.
--- a/sim/arm/armcopro.c
+++ b/sim/arm/armcopro.c
@@ -1,16 +1,16 @@
11 /* armcopro.c -- co-processor interface: ARM6 Instruction Emulator.
22 Copyright (C) 1994, 2000 Advanced RISC Machines Ltd.
3-
3+
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
66 the Free Software Foundation; either version 3 of the License, or
77 (at your option) any later version.
8-
8+
99 This program is distributed in the hope that it will be useful,
1010 but WITHOUT ANY WARRANTY; without even the implied warranty of
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
13-
13+
1414 You should have received a copy of the GNU General Public License
1515 along with this program; if not, see <http://www.gnu.org/licenses/>. */
1616
@@ -114,7 +114,7 @@ check_cp15_access (ARMul_State * state,
114114 /* CRm must be 0. Opcode_2 can be anything. */
115115 if (CRm != 0)
116116 return ARMul_CANT;
117- break;
117+ break;
118118 case 2:
119119 case 3:
120120 /* CRm must be 0. Opcode_2 must be zero. */
--- a/sim/arm/armdefs.h
+++ b/sim/arm/armdefs.h
@@ -1,16 +1,16 @@
11 /* armdefs.h -- ARMulator common definitions: ARM6 Instruction Emulator.
22 Copyright (C) 1994 Advanced RISC Machines Ltd.
3-
3+
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
66 the Free Software Foundation; either version 3 of the License, or
77 (at your option) any later version.
8-
8+
99 This program is distributed in the hope that it will be useful,
1010 but WITHOUT ANY WARRANTY; without even the implied warranty of
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
13-
13+
1414 You should have received a copy of the GNU General Public License
1515 along with this program; if not, see <http://www.gnu.org/licenses/>. */
1616
--- a/sim/arm/armfpe.h
+++ b/sim/arm/armfpe.h
@@ -1,23 +1,22 @@
11 /* armfpe.h -- ARMulator pre-compiled FPE: ARM6 Instruction Emulator.
22 Copyright (C) 1994 Advanced RISC Machines Ltd.
3-
3+
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
66 the Free Software Foundation; either version 3 of the License, or
77 (at your option) any later version.
8-
8+
99 This program is distributed in the hope that it will be useful,
1010 but WITHOUT ANY WARRANTY; without even the implied warranty of
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
13-
13+
1414 You should have received a copy of the GNU General Public License
1515 along with this program; if not, see <http://www.gnu.org/licenses/>. */
1616
1717 /* Array containing the Floating Point Emualtor (FPE). */
18-
19-
20-unsigned long fpecode[] = {
18+unsigned long fpecode[] =
19+{
2120 0x00000000, 0x00000000, 0x00000000, 0x00000000,
2221 0x00000000, 0x00000000, 0x00000000, 0x00000000,
2322 0x00000000, 0x00000000, 0x00000000, 0x00000000,
--- a/sim/arm/arminit.c
+++ b/sim/arm/arminit.c
@@ -1,16 +1,16 @@
11 /* arminit.c -- ARMulator initialization: ARM6 Instruction Emulator.
22 Copyright (C) 1994 Advanced RISC Machines Ltd.
3-
3+
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
66 the Free Software Foundation; either version 3 of the License, or
77 (at your option) any later version.
8-
8+
99 This program is distributed in the hope that it will be useful,
1010 but WITHOUT ANY WARRANTY; without even the implied warranty of
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
13-
13+
1414 You should have received a copy of the GNU General Public License
1515 along with this program; if not, see <http://www.gnu.org/licenses/>. */
1616
--- a/sim/arm/armopts.h
+++ b/sim/arm/armopts.h
@@ -1,20 +1,20 @@
11 /* armopts.h -- ARMulator configuration options: ARM6 Instruction Emulator.
22 Copyright (C) 1994 Advanced RISC Machines Ltd.
3-
3+
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
66 the Free Software Foundation; either version 3 of the License, or
77 (at your option) any later version.
8-
8+
99 This program is distributed in the hope that it will be useful,
1010 but WITHOUT ANY WARRANTY; without even the implied warranty of
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
13-
13+
1414 You should have received a copy of the GNU General Public License
1515 along with this program; if not, see <http://www.gnu.org/licenses/>. */
1616
17-/* Define one of ARM60 or ARM61 */
17+/* Define one of ARM60 or ARM61. */
1818 #ifndef ARM60
1919 #ifndef ARM61
2020 #define ARM60
--- a/sim/arm/armos.c
+++ b/sim/arm/armos.c
@@ -1,16 +1,16 @@
11 /* armos.c -- ARMulator OS interface: ARM6 Instruction Emulator.
22 Copyright (C) 1994 Advanced RISC Machines Ltd.
3-
3+
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
66 the Free Software Foundation; either version 3 of the License, or
77 (at your option) any later version.
8-
8+
99 This program is distributed in the hope that it will be useful,
1010 but WITHOUT ANY WARRANTY; without even the implied warranty of
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
13-
13+
1414 You should have received a copy of the GNU General Public License
1515 along with this program; if not, see <http://www.gnu.org/licenses/>. */
1616
@@ -157,7 +157,7 @@ ARMul_OSInit (ARMul_State * state)
157157 exit (15);
158158 }
159159 }
160-
160+
161161 OSptr = (struct OSblock *) state->OSptr;
162162 OSptr->ErrorP = 0;
163163 state->Reg[13] = ADDRSUPERSTACK; /* Set up a stack for the current mode... */
@@ -166,11 +166,11 @@ ARMul_OSInit (ARMul_State * state)
166166 ARMul_SetReg (state, UNDEF32MODE, 13, ADDRSUPERSTACK);/* ...and for undef 32 mode... */
167167 ARMul_SetReg (state, SYSTEMMODE, 13, ADDRSUPERSTACK);/* ...and for system mode. */
168168 instr = 0xe59ff000 | (ADDRSOFTVECTORS - 8); /* Load pc from soft vector */
169-
169+
170170 for (i = ARMul_ResetV; i <= ARMFIQV; i += 4)
171171 /* Write hardware vectors. */
172172 ARMul_WriteWord (state, i, instr);
173-
173+
174174 SWI_vector_installed = 0;
175175
176176 for (i = ARMul_ResetV; i <= ARMFIQV + 4; i += 4)
@@ -626,7 +626,7 @@ ARMul_OSHandleSWI (ARMul_State * state, ARMword number)
626626 returning -1 in r0 to the caller. If GDB is then used to
627627 resume the system call the reason code will now be -1. */
628628 return TRUE;
629-
629+
630630 /* Unimplemented reason codes. */
631631 case AngelSWI_Reason_ReadC:
632632 case AngelSWI_Reason_TmpNam:
@@ -777,7 +777,7 @@ ARMul_OSHandleSWI (ARMul_State * state, ARMword number)
777777 state->EndCondition = RDIError_SoftwareInterrupt;
778778 state->Emulate = FALSE;
779779 return FALSE;
780- }
780+ }
781781
782782 case 0x90: /* Reset. */
783783 case 0x92: /* SWI. */
@@ -799,7 +799,7 @@ ARMul_OSHandleSWI (ARMul_State * state, ARMword number)
799799 returning -1 in r0 to the caller. If GDB is then used to
800800 resume the system call the reason code will now be -1. */
801801 return TRUE;
802-
802+
803803 case 0x180001: /* RedBoot's Syscall SWI in ARM mode. */
804804 if (swi_mask & SWI_MASK_REDBOOT)
805805 {
@@ -887,11 +887,11 @@ ARMul_OSHandleSWI (ARMul_State * state, ARMword number)
887887 }
888888 break;
889889 }
890-
890+
891891 default:
892892 unhandled = TRUE;
893893 }
894-
894+
895895 if (unhandled)
896896 {
897897 if (SWI_vector_installed)
--- a/sim/arm/armos.h
+++ b/sim/arm/armos.h
@@ -1,16 +1,16 @@
11 /* armos.h -- ARMulator OS definitions: ARM6 Instruction Emulator.
22 Copyright (C) 1994 Advanced RISC Machines Ltd.
3-
3+
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
66 the Free Software Foundation; either version 3 of the License, or
77 (at your option) any later version.
8-
8+
99 This program is distributed in the hope that it will be useful,
1010 but WITHOUT ANY WARRANTY; without even the implied warranty of
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
13-
13+
1414 You should have received a copy of the GNU General Public License
1515 along with this program; if not, see <http://www.gnu.org/licenses/>. */
1616
--- a/sim/arm/armrdi.c
+++ b/sim/arm/armrdi.c
@@ -1,16 +1,16 @@
11 /* armrdi.c -- ARMulator RDI interface: ARM6 Instruction Emulator.
22 Copyright (C) 1994 Advanced RISC Machines Ltd.
3-
3+
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
66 the Free Software Foundation; either version 3 of the License, or
77 (at your option) any later version.
8-
8+
99 This program is distributed in the hope that it will be useful,
1010 but WITHOUT ANY WARRANTY; without even the implied warranty of
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
13-
13+
1414 You should have received a copy of the GNU General Public License
1515 along with this program; if not, see <http://www.gnu.org/licenses/>. */
1616
--- a/sim/arm/armsupp.c
+++ b/sim/arm/armsupp.c
@@ -1134,7 +1134,7 @@ handle_VFP_op (ARMul_State * state, ARMword instr)
11341134 {
11351135 if (trace)
11361136 fprintf (stderr, " VFP: VMLS: %g = %g - %g * %g\n",
1137- VFP_dval (dest) - val,
1137+ VFP_dval (dest) - val,
11381138 VFP_dval (dest), VFP_dval (srcN), VFP_dval (srcM));
11391139 VFP_dval (dest) -= val;
11401140 }
@@ -1142,7 +1142,7 @@ handle_VFP_op (ARMul_State * state, ARMword instr)
11421142 {
11431143 if (trace)
11441144 fprintf (stderr, " VFP: VMLA: %g = %g + %g * %g\n",
1145- VFP_dval (dest) + val,
1145+ VFP_dval (dest) + val,
11461146 VFP_dval (dest), VFP_dval (srcN), VFP_dval (srcM));
11471147 VFP_dval (dest) += val;
11481148 }
@@ -1155,7 +1155,7 @@ handle_VFP_op (ARMul_State * state, ARMword instr)
11551155 {
11561156 if (trace)
11571157 fprintf (stderr, " VFP: VMLS: %g = %g - %g * %g\n",
1158- VFP_fval (dest) - val,
1158+ VFP_fval (dest) - val,
11591159 VFP_fval (dest), VFP_fval (srcN), VFP_fval (srcM));
11601160 VFP_fval (dest) -= val;
11611161 }
@@ -1163,7 +1163,7 @@ handle_VFP_op (ARMul_State * state, ARMword instr)
11631163 {
11641164 if (trace)
11651165 fprintf (stderr, " VFP: VMLA: %g = %g + %g * %g\n",
1166- VFP_fval (dest) + val,
1166+ VFP_fval (dest) + val,
11671167 VFP_fval (dest), VFP_fval (srcN), VFP_fval (srcM));
11681168 VFP_fval (dest) += val;
11691169 }
@@ -1345,7 +1345,7 @@ handle_VFP_op (ARMul_State * state, ARMword instr)
13451345 if (BIT (8))
13461346 {
13471347 ARMdval src = VFP_dval (srcM);
1348-
1348+
13491349 VFP_dval (dest) = fabs (src);
13501350 if (trace)
13511351 fprintf (stderr, " VFP: VABS (%g) = %g\n", src, VFP_dval (dest));
@@ -1402,7 +1402,7 @@ handle_VFP_op (ARMul_State * state, ARMword instr)
14021402 if (BIT (16) == 0)
14031403 {
14041404 ARMdval src = VFP_dval (srcM);
1405-
1405+
14061406 if (isinf (res) && isinf (src))
14071407 {
14081408 if (res > 0.0 && src > 0.0)
@@ -1442,7 +1442,7 @@ handle_VFP_op (ARMul_State * state, ARMword instr)
14421442 if (BIT (16) == 0)
14431443 {
14441444 ARMfval src = VFP_fval (srcM);
1445-
1445+
14461446 if (isinf (res) && isinf (src))
14471447 {
14481448 if (res > 0.0 && src > 0.0)
--- a/sim/arm/armvirt.c
+++ b/sim/arm/armvirt.c
@@ -1,26 +1,26 @@
11 /* armvirt.c -- ARMulator virtual memory interace: ARM6 Instruction Emulator.
22 Copyright (C) 1994 Advanced RISC Machines Ltd.
3-
3+
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
66 the Free Software Foundation; either version 3 of the License, or
77 (at your option) any later version.
8-
8+
99 This program is distributed in the hope that it will be useful,
1010 but WITHOUT ANY WARRANTY; without even the implied warranty of
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
13-
13+
1414 You should have received a copy of the GNU General Public License
1515 along with this program; if not, see <http://www.gnu.org/licenses/>. */
1616
1717 /* This file contains a complete ARMulator memory model, modelling a
18-"virtual memory" system. A much simpler model can be found in armfast.c,
19-and that model goes faster too, but has a fixed amount of memory. This
20-model's memory has 64K pages, allocated on demand from a 64K entry page
21-table. The routines PutWord and GetWord implement this. Pages are never
22-freed as they might be needed again. A single area of memory may be
23-defined to generate aborts. */
18+ "virtual memory" system. A much simpler model can be found in armfast.c,
19+ and that model goes faster too, but has a fixed amount of memory. This
20+ model's memory has 64K pages, allocated on demand from a 64K entry page
21+ table. The routines PutWord and GetWord implement this. Pages are never
22+ freed as they might be needed again. A single area of memory may be
23+ defined to generate aborts. */
2424
2525 #include "armopts.h"
2626 #include "armos.h"
--- a/sim/arm/bag.c
+++ b/sim/arm/bag.c
@@ -1,16 +1,16 @@
11 /* bag.c -- ARMulator support code: ARM6 Instruction Emulator.
22 Copyright (C) 1994 Advanced RISC Machines Ltd.
3-
3+
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
66 the Free Software Foundation; either version 3 of the License, or
77 (at your option) any later version.
8-
8+
99 This program is distributed in the hope that it will be useful,
1010 but WITHOUT ANY WARRANTY; without even the implied warranty of
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
13-
13+
1414 You should have received a copy of the GNU General Public License
1515 along with this program; if not, see <http://www.gnu.org/licenses/>. */
1616
--- a/sim/arm/bag.h
+++ b/sim/arm/bag.h
@@ -1,16 +1,16 @@
11 /* bag.h -- ARMulator support code: ARM6 Instruction Emulator.
22 Copyright (C) 1994 Advanced RISC Machines Ltd.
3-
3+
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
66 the Free Software Foundation; either version 3 of the License, or
77 (at your option) any later version.
8-
8+
99 This program is distributed in the hope that it will be useful,
1010 but WITHOUT ANY WARRANTY; without even the implied warranty of
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
13-
13+
1414 You should have received a copy of the GNU General Public License
1515 along with this program; if not, see <http://www.gnu.org/licenses/>. */
1616
--- a/sim/arm/communicate.c
+++ b/sim/arm/communicate.c
@@ -1,16 +1,16 @@
11 /* communicate.c -- ARMulator RDP comms code: ARM6 Instruction Emulator.
22 Copyright (C) 1994 Advanced RISC Machines Ltd.
3-
3+
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
66 the Free Software Foundation; either version 3 of the License, or
77 (at your option) any later version.
8-
8+
99 This program is distributed in the hope that it will be useful,
1010 but WITHOUT ANY WARRANTY; without even the implied warranty of
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
13-
13+
1414 You should have received a copy of the GNU General Public License
1515 along with this program; if not, see <http://www.gnu.org/licenses/>. */
1616
--- a/sim/arm/communicate.h
+++ b/sim/arm/communicate.h
@@ -1,16 +1,16 @@
11 /* communicate.h -- ARMulator comms support defns: ARM6 Instruction Emulator.
22 Copyright (C) 1994 Advanced RISC Machines Ltd.
3-
3+
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
66 the Free Software Foundation; either version 3 of the License, or
77 (at your option) any later version.
8-
8+
99 This program is distributed in the hope that it will be useful,
1010 but WITHOUT ANY WARRANTY; without even the implied warranty of
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
13-
13+
1414 You should have received a copy of the GNU General Public License
1515 along with this program; if not, see <http://www.gnu.org/licenses/>. */
1616
--- a/sim/arm/dbg_conf.h
+++ b/sim/arm/dbg_conf.h
@@ -1,21 +1,20 @@
11 /* dbg_conf.h -- ARMulator debug interface: ARM6 Instruction Emulator.
22 Copyright (C) 1994 Advanced RISC Machines Ltd.
3-
3+
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
66 the Free Software Foundation; either version 3 of the License, or
77 (at your option) any later version.
8-
8+
99 This program is distributed in the hope that it will be useful,
1010 but WITHOUT ANY WARRANTY; without even the implied warranty of
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
13-
13+
1414 You should have received a copy of the GNU General Public License
1515 along with this program; if not, see <http://www.gnu.org/licenses/>. */
1616
1717 #ifndef Dbg_Conf__h
18-
1918 #define Dbg_Conf__h
2019
2120 typedef struct Dbg_ConfigBlock
--- a/sim/arm/dbg_cp.h
+++ b/sim/arm/dbg_cp.h
@@ -1,16 +1,16 @@
11 /* dbg_cp.h -- ARMulator debug interface: ARM6 Instruction Emulator.
22 Copyright (C) 1994 Advanced RISC Machines Ltd.
3-
3+
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
66 the Free Software Foundation; either version 3 of the License, or
77 (at your option) any later version.
8-
8+
99 This program is distributed in the hope that it will be useful,
1010 but WITHOUT ANY WARRANTY; without even the implied warranty of
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
13-
13+
1414 You should have received a copy of the GNU General Public License
1515 along with this program; if not, see <http://www.gnu.org/licenses/>. */
1616
--- a/sim/arm/dbg_hif.h
+++ b/sim/arm/dbg_hif.h
@@ -1,16 +1,16 @@
11 /* dbg_hif.h -- ARMulator debug interface: ARM6 Instruction Emulator.
22 Copyright (C) 1994 Advanced RISC Machines Ltd.
3-
3+
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
66 the Free Software Foundation; either version 3 of the License, or
77 (at your option) any later version.
8-
8+
99 This program is distributed in the hope that it will be useful,
1010 but WITHOUT ANY WARRANTY; without even the implied warranty of
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
13-
13+
1414 You should have received a copy of the GNU General Public License
1515 along with this program; if not, see <http://www.gnu.org/licenses/>. */
1616
--- a/sim/arm/dbg_rdi.h
+++ b/sim/arm/dbg_rdi.h
@@ -1,16 +1,16 @@
11 /* dbg_rdi.h -- ARMulator RDI interface: ARM6 Instruction Emulator.
22 Copyright (C) 1994 Advanced RISC Machines Ltd.
3-
3+
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
66 the Free Software Foundation; either version 3 of the License, or
77 (at your option) any later version.
8-
8+
99 This program is distributed in the hope that it will be useful,
1010 but WITHOUT ANY WARRANTY; without even the implied warranty of
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
13-
13+
1414 You should have received a copy of the GNU General Public License
1515 along with this program; if not, see <http://www.gnu.org/licenses/>. */
1616
--- a/sim/arm/gdbhost.c
+++ b/sim/arm/gdbhost.c
@@ -1,16 +1,16 @@
11 /* gdbhost.c -- ARMulator RDP to gdb comms code: ARM6 Instruction Emulator.
22 Copyright (C) 1994 Advanced RISC Machines Ltd.
3-
3+
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
66 the Free Software Foundation; either version 3 of the License, or
77 (at your option) any later version.
8-
8+
99 This program is distributed in the hope that it will be useful,
1010 but WITHOUT ANY WARRANTY; without even the implied warranty of
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
13-
13+
1414 You should have received a copy of the GNU General Public License
1515 along with this program; if not, see <http://www.gnu.org/licenses/>. */
1616
--- a/sim/arm/gdbhost.h
+++ b/sim/arm/gdbhost.h
@@ -1,16 +1,16 @@
11 /* gdbhost.h -- ARMulator to gdb interface: ARM6 Instruction Emulator.
22 Copyright (C) 1994 Advanced RISC Machines Ltd.
3-
3+
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
66 the Free Software Foundation; either version 3 of the License, or
77 (at your option) any later version.
8-
8+
99 This program is distributed in the hope that it will be useful,
1010 but WITHOUT ANY WARRANTY; without even the implied warranty of
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
13-
13+
1414 You should have received a copy of the GNU General Public License
1515 along with this program; if not, see <http://www.gnu.org/licenses/>. */
1616
--- a/sim/arm/iwmmxt.c
+++ b/sim/arm/iwmmxt.c
@@ -1,7 +1,7 @@
11 /* iwmmxt.c -- Intel(r) Wireless MMX(tm) technology co-processor interface.
22 Copyright (C) 2002-2015 Free Software Foundation, Inc.
33 Contributed by matthew green (mrg@redhat.com).
4-
4+
55 This program is free software; you can redistribute it and/or modify
66 it under the terms of the GNU General Public License as published by
77 the Free Software Foundation; either version 3 of the License, or
@@ -25,7 +25,7 @@
2525
2626 /* #define DEBUG 1 */
2727
28-/* Intel(r) Wireless MMX(tm) technology co-processor.
28+/* Intel(r) Wireless MMX(tm) technology co-processor.
2929 It uses co-processor numbers (0 and 1). There are 16 vector registers wRx
3030 and 16 control registers wCx. Co-processors 0 and 1 are used in MCR/MRC
3131 to access wRx and wCx respectively. */
@@ -231,7 +231,7 @@ Add32 (ARMword a1,
231231 same sign, but the result is a different sign. */
232232 * overflow_ptr = ( ( (result & sign_mask) && !(a1 & sign_mask) && !(a2 & sign_mask))
233233 || (!(result & sign_mask) && (a1 & sign_mask) && (a2 & sign_mask)));
234-
234+
235235 return result;
236236 }
237237
@@ -495,7 +495,7 @@ static signed short
495495 IwmmxtSaturateS16 (signed int val, int * sat)
496496 {
497497 signed short rv;
498-
498+
499499 if (val < -0x8000)
500500 {
501501 rv = - 0x8000;
@@ -541,7 +541,7 @@ static signed long
541541 IwmmxtSaturateS32 (signed long long val, int * sat)
542542 {
543543 signed long rv;
544-
544+
545545 if (val < -0x80000000LL)
546546 {
547547 rv = -0x80000000;
@@ -616,7 +616,7 @@ TANDC (ARMul_State * state, ARMword instr)
616616
617617 #ifdef DEBUG
618618 fprintf (stderr, "tandc\n");
619-#endif
619+#endif
620620
621621 /* The Rd field must be r15. */
622622 if (BITS (12, 15) != 15)
@@ -654,7 +654,7 @@ TANDC (ARMul_State * state, ARMword instr)
654654 ARMul_UndefInstr (state, instr);
655655 return ARMul_DONE;
656656 }
657-
657+
658658 ARMul_SetCPSR (state, cpsr);
659659
660660 return ARMul_DONE;
@@ -671,7 +671,7 @@ TBCST (ARMul_State * state, ARMword instr)
671671
672672 #ifdef DEBUG
673673 fprintf (stderr, "tbcst\n");
674-#endif
674+#endif
675675
676676 Rn = state->Reg [BITS (12, 15)];
677677 if (BITS (12, 15) == 15)
@@ -717,7 +717,7 @@ TEXTRC (ARMul_State * state, ARMword instr)
717717
718718 #ifdef DEBUG
719719 fprintf (stderr, "textrc\n");
720-#endif
720+#endif
721721
722722 /* The Rd field must be r15. */
723723 if (BITS (12, 15) != 15)
@@ -744,7 +744,7 @@ TEXTRC (ARMul_State * state, ARMword instr)
744744 ARMul_UndefInstr (state, instr);
745745 return ARMul_DONE;
746746 }
747-
747+
748748 cpsr |= wCBITS (wCASF, selector, selector + 3) << 28;
749749 ARMul_SetCPSR (state, cpsr);
750750
@@ -764,12 +764,12 @@ TEXTRM (ARMul_State * state, ARMword instr)
764764
765765 #ifdef DEBUG
766766 fprintf (stderr, "textrm\n");
767-#endif
767+#endif
768768
769769 wRn = BITS (16, 19);
770770 sign = BIT (3);
771771 offset = BITS (0, 2);
772-
772+
773773 switch (BITS (22, 23))
774774 {
775775 case Bqual:
@@ -844,7 +844,7 @@ TINSR (ARMul_State * state, ARMword instr)
844844
845845 switch (offset & 3)
846846 {
847- case 0: wR [wRd] = data | (wRBITS (wRd, 16, 63) << 16); break;
847+ case 0: wR [wRd] = data | (wRBITS (wRd, 16, 63) << 16); break;
848848 case 1: wR [wRd] = wRBITS (wRd, 0, 15) | (data << 16) | (wRBITS (wRd, 32, 63) << 32); break;
849849 case 2: wR [wRd] = wRBITS (wRd, 0, 31) | (data << 32) | (wRBITS (wRd, 48, 63) << 48); break;
850850 case 3: wR [wRd] = wRBITS (wRd, 0, 47) | (data << 48); break;
@@ -878,7 +878,7 @@ TMCR (ARMul_State * state, ARMword instr)
878878
879879 #ifdef DEBUG
880880 fprintf (stderr, "tmcr\n");
881-#endif
881+#endif
882882
883883 if (BITS (0, 3) != 0)
884884 return ARMul_CANT;
@@ -899,14 +899,14 @@ TMCR (ARMul_State * state, ARMword instr)
899899 /* Writing to the MUP or CUP bits clears them. */
900900 wC [wCon] &= ~ (val & 0x3);
901901 break;
902-
902+
903903 case wCSSF:
904904 /* Only the bottom 8 bits can be written to.
905905 The higher bits write as zero. */
906906 wC [wCSSF] = (val & 0xff);
907907 wC [wCon] |= WCON_CUP;
908908 break;
909-
909+
910910 default:
911911 wC [wCreg] = val;
912912 wC [wCon] |= WCON_CUP;
@@ -927,7 +927,7 @@ TMCRR (ARMul_State * state, ARMword instr)
927927
928928 #ifdef DEBUG
929929 fprintf (stderr, "tmcrr\n");
930-#endif
930+#endif
931931
932932 if ((BITS (16, 19) == 15) || (BITS (12, 15) == 15))
933933 return ARMul_CANT;
@@ -949,7 +949,7 @@ TMIA (ARMul_State * state, ARMword instr)
949949
950950 #ifdef DEBUG
951951 fprintf (stderr, "tmia\n");
952-#endif
952+#endif
953953
954954 if ((BITS (0, 3) == 15) || (BITS (12, 15) == 15))
955955 {
@@ -976,13 +976,13 @@ TMIAPH (ARMul_State * state, ARMword instr)
976976 signed long long r;
977977 ARMword Rm = state->Reg [BITS (0, 3)];
978978 ARMword Rs = state->Reg [BITS (12, 15)];
979-
979+
980980 if ((read_cp15_reg (15, 0, 1) & 3) != 3)
981981 return ARMul_CANT;
982982
983983 #ifdef DEBUG
984984 fprintf (stderr, "tmiaph\n");
985-#endif
985+#endif
986986
987987 if (BITS (0, 3) == 15 || BITS (12, 15) == 15)
988988 {
@@ -1000,7 +1000,7 @@ TMIAPH (ARMul_State * state, ARMword instr)
10001000
10011001 r = result;
10021002 r = EXTEND32 (r);
1003-
1003+
10041004 wR [BITS (5, 8)] += r;
10051005
10061006 a = SUBSTR (Rs, ARMword, 0, 15);
@@ -1013,7 +1013,7 @@ TMIAPH (ARMul_State * state, ARMword instr)
10131013
10141014 r = result;
10151015 r = EXTEND32 (r);
1016-
1016+
10171017 wR [BITS (5, 8)] += r;
10181018 wC [wCon] |= WCON_MUP;
10191019
@@ -1026,13 +1026,13 @@ TMIAxy (ARMul_State * state, ARMword instr)
10261026 ARMword Rm;
10271027 ARMword Rs;
10281028 long long temp;
1029-
1029+
10301030 if ((read_cp15_reg (15, 0, 1) & 3) != 3)
10311031 return ARMul_CANT;
10321032
10331033 #ifdef DEBUG
10341034 fprintf (stderr, "tmiaxy\n");
1035-#endif
1035+#endif
10361036
10371037 if (BITS (0, 3) == 15 || BITS (12, 15) == 15)
10381038 {
@@ -1081,7 +1081,7 @@ TMOVMSK (ARMul_State * state, ARMword instr)
10811081
10821082 #ifdef DEBUG
10831083 fprintf (stderr, "tmovmsk\n");
1084-#endif
1084+#endif
10851085
10861086 /* The CRm field must be r0. */
10871087 if (BITS (0, 3) != 0)
@@ -1133,7 +1133,7 @@ TMRC (ARMul_State * state, ARMword instr)
11331133
11341134 #ifdef DEBUG
11351135 fprintf (stderr, "tmrc\n");
1136-#endif
1136+#endif
11371137
11381138 if (BITS (0, 3) != 0)
11391139 return ARMul_CANT;
@@ -1154,7 +1154,7 @@ TMRRC (ARMul_State * state, ARMword instr)
11541154
11551155 #ifdef DEBUG
11561156 fprintf (stderr, "tmrrc\n");
1157-#endif
1157+#endif
11581158
11591159 if ((BITS (16, 19) == 15) || (BITS (12, 15) == 15) || (BITS (4, 11) != 0))
11601160 ARMul_UndefInstr (state, instr);
@@ -1177,16 +1177,16 @@ TORC (ARMul_State * state, ARMword instr)
11771177
11781178 #ifdef DEBUG
11791179 fprintf (stderr, "torc\n");
1180-#endif
1180+#endif
11811181
11821182 /* The Rd field must be r15. */
11831183 if (BITS (12, 15) != 15)
11841184 return ARMul_CANT;
1185-
1185+
11861186 /* The CRn field must be r3. */
11871187 if (BITS (16, 19) != 3)
11881188 return ARMul_CANT;
1189-
1189+
11901190 /* The CRm field must be r0. */
11911191 if (BITS (0, 3) != 0)
11921192 return ARMul_CANT;
@@ -1215,7 +1215,7 @@ TORC (ARMul_State * state, ARMword instr)
12151215 ARMul_UndefInstr (state, instr);
12161216 return ARMul_DONE;
12171217 }
1218-
1218+
12191219 ARMul_SetCPSR (state, cpsr);
12201220
12211221 return ARMul_DONE;
@@ -1231,7 +1231,7 @@ WACC (ARMul_State * state, ARMword instr)
12311231
12321232 #ifdef DEBUG
12331233 fprintf (stderr, "wacc\n");
1234-#endif
1234+#endif
12351235
12361236 wRn = BITS (16, 19);
12371237
@@ -1281,7 +1281,7 @@ WADD (ARMul_State * state, ARMword instr)
12811281
12821282 #ifdef DEBUG
12831283 fprintf (stderr, "wadd\n");
1284-#endif
1284+#endif
12851285
12861286 /* Add two numbers using the specified function,
12871287 leaving setting the carry bit as required. */
@@ -1450,7 +1450,7 @@ WADD (ARMul_State * state, ARMword instr)
14501450 wC [wCon] |= (WCON_MUP | WCON_CUP);
14511451
14521452 SET_wCSSFvec (satrv);
1453-
1453+
14541454 #undef ADDx
14551455
14561456 return ARMul_DONE;
@@ -1466,7 +1466,7 @@ WALIGNI (ARMword instr)
14661466
14671467 #ifdef DEBUG
14681468 fprintf (stderr, "waligni\n");
1469-#endif
1469+#endif
14701470
14711471 if (shift)
14721472 wR [BITS (12, 15)] =
@@ -1474,7 +1474,7 @@ WALIGNI (ARMword instr)
14741474 | (wRBITS (BITS (0, 3), 0, shift) << ((64 - shift)));
14751475 else
14761476 wR [BITS (12, 15)] = wR [BITS (16, 19)];
1477-
1477+
14781478 wC [wCon] |= WCON_MUP;
14791479 return ARMul_DONE;
14801480 }
@@ -1489,7 +1489,7 @@ WALIGNR (ARMul_State * state, ARMword instr)
14891489
14901490 #ifdef DEBUG
14911491 fprintf (stderr, "walignr\n");
1492-#endif
1492+#endif
14931493
14941494 if (shift)
14951495 wR [BITS (12, 15)] =
@@ -1513,14 +1513,14 @@ WAND (ARMword instr)
15131513
15141514 #ifdef DEBUG
15151515 fprintf (stderr, "wand\n");
1516-#endif
1516+#endif
15171517
15181518 result = wR [BITS (16, 19)] & wR [BITS (0, 3)];
15191519 wR [BITS (12, 15)] = result;
15201520
15211521 SIMD64_SET (psr, (result == 0), SIMD_ZBIT);
15221522 SIMD64_SET (psr, (result & (1ULL << 63)), SIMD_NBIT);
1523-
1523+
15241524 wC [wCASF] = psr;
15251525 wC [wCon] |= (WCON_CUP | WCON_MUP);
15261526
@@ -1538,14 +1538,14 @@ WANDN (ARMword instr)
15381538
15391539 #ifdef DEBUG
15401540 fprintf (stderr, "wandn\n");
1541-#endif
1541+#endif
15421542
15431543 result = wR [BITS (16, 19)] & ~ wR [BITS (0, 3)];
15441544 wR [BITS (12, 15)] = result;
15451545
15461546 SIMD64_SET (psr, (result == 0), SIMD_ZBIT);
15471547 SIMD64_SET (psr, (result & (1ULL << 63)), SIMD_NBIT);
1548-
1548+
15491549 wC [wCASF] = psr;
15501550 wC [wCon] |= (WCON_CUP | WCON_MUP);
15511551
@@ -1566,7 +1566,7 @@ WAVG2 (ARMword instr)
15661566
15671567 #ifdef DEBUG
15681568 fprintf (stderr, "wavg2\n");
1569-#endif
1569+#endif
15701570
15711571 #define AVG2x(x, y, m) (((wRBITS (BITS (16, 19), (x), (y)) & (m)) \
15721572 + (wRBITS (BITS ( 0, 3), (x), (y)) & (m)) \
@@ -1611,7 +1611,7 @@ WCMPEQ (ARMul_State * state, ARMword instr)
16111611
16121612 #ifdef DEBUG
16131613 fprintf (stderr, "wcmpeq\n");
1614-#endif
1614+#endif
16151615
16161616 switch (BITS (22, 23))
16171617 {
@@ -1670,7 +1670,7 @@ WCMPGT (ARMul_State * state, ARMword instr)
16701670
16711671 #ifdef DEBUG
16721672 fprintf (stderr, "wcmpgt\n");
1673-#endif
1673+#endif
16741674
16751675 switch (BITS (22, 23))
16761676 {
@@ -1681,7 +1681,7 @@ WCMPGT (ARMul_State * state, ARMword instr)
16811681 for (i = 0; i < 8; i++)
16821682 {
16831683 signed char a, b;
1684-
1684+
16851685 a = wRBYTE (BITS (16, 19), i);
16861686 b = wRBYTE (BITS (0, 3), i);
16871687
@@ -1826,7 +1826,7 @@ Compute_Iwmmxt_Address (ARMul_State * state, ARMword instr, int * pFailed)
18261826 /* Writeback into R15 is UNPREDICTABLE. */
18271827 #ifdef DEBUG
18281828 fprintf (stderr, "iWMMXt: writeback into r15\n");
1829-#endif
1829+#endif
18301830 * pFailed = 1;
18311831 }
18321832 else
@@ -1848,7 +1848,7 @@ Compute_Iwmmxt_Address (ARMul_State * state, ARMword instr, int * pFailed)
18481848 {
18491849 #ifdef DEBUG
18501850 fprintf (stderr, "iWMMXt: undefined addressing mode\n");
1851-#endif
1851+#endif
18521852 * pFailed = 1;
18531853 }
18541854 }
@@ -1861,7 +1861,7 @@ static ARMdword
18611861 Iwmmxt_Load_Double_Word (ARMul_State * state, ARMword address)
18621862 {
18631863 ARMdword value;
1864-
1864+
18651865 /* The address must be aligned on a 8 byte boundary. */
18661866 if (address & 0x7)
18671867 {
@@ -1911,7 +1911,7 @@ Iwmmxt_Load_Word (ARMul_State * state, ARMword address)
19111911 else
19121912 address &= ~ 3;
19131913 }
1914-
1914+
19151915 value = ARMul_LoadWordN (state, address);
19161916
19171917 if (state->Aborted)
@@ -2052,7 +2052,7 @@ WLDR (ARMul_State * state, ARMword instr)
20522052
20532053 #ifdef DEBUG
20542054 fprintf (stderr, "wldr\n");
2055-#endif
2055+#endif
20562056
20572057 address = Compute_Iwmmxt_Address (state, instr, & failed);
20582058 if (failed)
@@ -2099,7 +2099,7 @@ WMAC (ARMword instr)
20992099
21002100 #ifdef DEBUG
21012101 fprintf (stderr, "wmac\n");
2102-#endif
2102+#endif
21032103
21042104 for (i = 0; i < 4; i++)
21052105 {
@@ -2154,7 +2154,7 @@ WMADD (ARMword instr)
21542154
21552155 #ifdef DEBUG
21562156 fprintf (stderr, "wmadd\n");
2157-#endif
2157+#endif
21582158
21592159 for (i = 0; i < 2; i++)
21602160 {
@@ -2216,7 +2216,7 @@ WMAX (ARMul_State * state, ARMword instr)
22162216
22172217 #ifdef DEBUG
22182218 fprintf (stderr, "wmax\n");
2219-#endif
2219+#endif
22202220
22212221 switch (BITS (22, 23))
22222222 {
@@ -2345,7 +2345,7 @@ WMIN (ARMul_State * state, ARMword instr)
23452345
23462346 #ifdef DEBUG
23472347 fprintf (stderr, "wmin\n");
2348-#endif
2348+#endif
23492349
23502350 switch (BITS (22, 23))
23512351 {
@@ -2459,7 +2459,7 @@ WMIN (ARMul_State * state, ARMword instr)
24592459
24602460 wR [BITS (12, 15)] = r;
24612461 wC [wCon] |= WCON_MUP;
2462-
2462+
24632463 return ARMul_DONE;
24642464 }
24652465
@@ -2475,7 +2475,7 @@ WMUL (ARMword instr)
24752475
24762476 #ifdef DEBUG
24772477 fprintf (stderr, "wmul\n");
2478-#endif
2478+#endif
24792479
24802480 for (i = 0; i < 4; i++)
24812481 if (BIT (21)) /* Signed. */
@@ -2527,14 +2527,14 @@ WOR (ARMword instr)
25272527
25282528 #ifdef DEBUG
25292529 fprintf (stderr, "wor\n");
2530-#endif
2530+#endif
25312531
25322532 result = wR [BITS (16, 19)] | wR [BITS (0, 3)];
25332533 wR [BITS (12, 15)] = result;
25342534
25352535 SIMD64_SET (psr, (result == 0), SIMD_ZBIT);
25362536 SIMD64_SET (psr, (result & (1ULL << 63)), SIMD_NBIT);
2537-
2537+
25382538 wC [wCASF] = psr;
25392539 wC [wCon] |= (WCON_CUP | WCON_MUP);
25402540
@@ -2556,8 +2556,8 @@ WPACK (ARMul_State * state, ARMword instr)
25562556
25572557 #ifdef DEBUG
25582558 fprintf (stderr, "wpack\n");
2559-#endif
2560-
2559+#endif
2560+
25612561 switch (BITS (22, 23))
25622562 {
25632563 case Hqual:
@@ -2669,7 +2669,7 @@ WROR (ARMul_State * state, ARMword instr)
26692669
26702670 #ifdef DEBUG
26712671 fprintf (stderr, "wror\n");
2672-#endif
2672+#endif
26732673
26742674 DECODE_G_BIT (state, instr, shift);
26752675
@@ -2732,7 +2732,7 @@ WSAD (ARMword instr)
27322732
27332733 #ifdef DEBUG
27342734 fprintf (stderr, "wsad\n");
2735-#endif
2735+#endif
27362736
27372737 /* Z bit. */
27382738 r = BIT (20) ? 0 : (wR [BITS (12, 15)] & 0xffffffff);
@@ -2772,7 +2772,7 @@ WSHUFH (ARMword instr)
27722772
27732773 #ifdef DEBUG
27742774 fprintf (stderr, "wshufh\n");
2775-#endif
2775+#endif
27762776
27772777 imm8 = (BITS (20, 23) << 4) | BITS (0, 3);
27782778
@@ -2805,7 +2805,7 @@ WSLL (ARMul_State * state, ARMword instr)
28052805
28062806 #ifdef DEBUG
28072807 fprintf (stderr, "wsll\n");
2808-#endif
2808+#endif
28092809
28102810 DECODE_G_BIT (state, instr, shift);
28112811
@@ -2874,7 +2874,7 @@ WSRA (ARMul_State * state, ARMword instr)
28742874
28752875 #ifdef DEBUG
28762876 fprintf (stderr, "wsra\n");
2877-#endif
2877+#endif
28782878
28792879 DECODE_G_BIT (state, instr, shift);
28802880
@@ -2915,7 +2915,7 @@ WSRA (ARMul_State * state, ARMword instr)
29152915 SIMD32_SET (psr, ZBIT32 (s), SIMD_ZBIT, i);
29162916 }
29172917 break;
2918-
2918+
29192919 case Dqual:
29202920 if (shift > 63)
29212921 r = (wR [BITS (16, 19)] & 0x8000000000000000ULL) ? 0xffffffffffffffffULL : 0;
@@ -3020,7 +3020,7 @@ WSTR (ARMul_State * state, ARMword instr)
30203020 #ifdef DEBUG
30213021 fprintf (stderr, "wstr\n");
30223022 #endif
3023-
3023+
30243024 address = Compute_Iwmmxt_Address (state, instr, & failed);
30253025 if (failed)
30263026 return ARMul_CANT;
@@ -3069,7 +3069,7 @@ WSUB (ARMul_State * state, ARMword instr)
30693069
30703070 #ifdef DEBUG
30713071 fprintf (stderr, "wsub\n");
3072-#endif
3072+#endif
30733073
30743074 /* Subtract two numbers using the specified function,
30753075 leaving setting the carry bit as required. */
@@ -3255,7 +3255,7 @@ WUNPCKEH (ARMul_State * state, ARMword instr)
32553255
32563256 #ifdef DEBUG
32573257 fprintf (stderr, "wunpckeh\n");
3258-#endif
3258+#endif
32593259
32603260 switch (BITS (22, 23))
32613261 {
@@ -3322,7 +3322,7 @@ WUNPCKEL (ARMul_State * state, ARMword instr)
33223322
33233323 #ifdef DEBUG
33243324 fprintf (stderr, "wunpckel\n");
3325-#endif
3325+#endif
33263326
33273327 switch (BITS (22, 23))
33283328 {
@@ -3390,7 +3390,7 @@ WUNPCKIH (ARMul_State * state, ARMword instr)
33903390
33913391 #ifdef DEBUG
33923392 fprintf (stderr, "wunpckih\n");
3393-#endif
3393+#endif
33943394
33953395 switch (BITS (22, 23))
33963396 {
@@ -3407,7 +3407,7 @@ WUNPCKIH (ARMul_State * state, ARMword instr)
34073407 SIMD8_SET (psr, ZBIT8 (b), SIMD_ZBIT, (i * 2) + 1);
34083408 }
34093409 break;
3410-
3410+
34113411 case Hqual:
34123412 for (i = 0; i < 2; i++)
34133413 {
@@ -3459,7 +3459,7 @@ WUNPCKIL (ARMul_State * state, ARMword instr)
34593459
34603460 #ifdef DEBUG
34613461 fprintf (stderr, "wunpckil\n");
3462-#endif
3462+#endif
34633463
34643464 switch (BITS (22, 23))
34653465 {
@@ -3525,14 +3525,14 @@ WXOR (ARMword instr)
35253525
35263526 #ifdef DEBUG
35273527 fprintf (stderr, "wxor\n");
3528-#endif
3528+#endif
35293529
35303530 result = wR [BITS (16, 19)] ^ wR [BITS (0, 3)];
35313531 wR [BITS (12, 15)] = result;
35323532
35333533 SIMD64_SET (psr, (result == 0), SIMD_ZBIT);
35343534 SIMD64_SET (psr, (result & (1ULL << 63)), SIMD_NBIT);
3535-
3535+
35363536 wC [wCASF] = psr;
35373537 wC [wCon] |= (WCON_CUP | WCON_MUP);
35383538
@@ -3560,7 +3560,7 @@ Process_Instruction (ARMul_State * state, ARMword instr)
35603560 status = WMADD (instr); break;
35613561
35623562 case 0x10e: case 0x50e: case 0x90e: case 0xd0e:
3563- status = WUNPCKIL (state, instr); break;
3563+ status = WUNPCKIL (state, instr); break;
35643564 case 0x10c: case 0x50c: case 0x90c: case 0xd0c:
35653565 status = WUNPCKIH (state, instr); break;
35663566 case 0x012: case 0x112: case 0x412: case 0x512:
@@ -3626,7 +3626,7 @@ Process_Instruction (ARMul_State * state, ARMword instr)
36263626 case 0x81a: case 0x91a: case 0xa1a: case 0xb1a:
36273627 case 0xc1a: case 0xd1a: case 0xe1a: case 0xf1a:
36283628 status = WSUB (state, instr); break;
3629- case 0x01e: case 0x11e: case 0x21e: case 0x31e:
3629+ case 0x01e: case 0x11e: case 0x21e: case 0x31e:
36303630 case 0x41e: case 0x51e: case 0x61e: case 0x71e:
36313631 case 0x81e: case 0x91e: case 0xa1e: case 0xb1e:
36323632 case 0xc1e: case 0xd1e: case 0xe1e: case 0xf1e:
@@ -3643,8 +3643,8 @@ Process_Instruction (ARMul_State * state, ARMword instr)
36433643 status = WPACK (state, instr); break;
36443644 case 0x201: case 0x203: case 0x205: case 0x207:
36453645 case 0x209: case 0x20b: case 0x20d: case 0x20f:
3646- case 0x211: case 0x213: case 0x215: case 0x217:
3647- case 0x219: case 0x21b: case 0x21d: case 0x21f:
3646+ case 0x211: case 0x213: case 0x215: case 0x217:
3647+ case 0x219: case 0x21b: case 0x21d: case 0x21f:
36483648 switch (BITS (16, 19))
36493649 {
36503650 case 0x0: status = TMIA (state, instr); break;
@@ -3667,7 +3667,7 @@ Process_Instruction (ARMul_State * state, ARMword instr)
36673667
36683668 int
36693669 ARMul_HandleIwmmxt (ARMul_State * state, ARMword instr)
3670-{
3670+{
36713671 int status = ARMul_BUSY;
36723672
36733673 if (BITS (24, 27) == 0xe)
--- a/sim/arm/iwmmxt.h
+++ b/sim/arm/iwmmxt.h
@@ -1,7 +1,7 @@
11 /* iwmmxt.h -- Intel(r) Wireless MMX(tm) technology co-processor interface.
22 Copyright (C) 2002-2015 Free Software Foundation, Inc.
33 Contributed by matthew green (mrg@redhat.com).
4-
4+
55 This program is free software; you can redistribute it and/or modify
66 it under the terms of the GNU General Public License as published by
77 the Free Software Foundation; either version 3 of the License, or
--- a/sim/arm/kid.c
+++ b/sim/arm/kid.c
@@ -1,16 +1,16 @@
11 /* kid.c -- ARMulator RDP/RDI interface: ARM6 Instruction Emulator.
22 Copyright (C) 1994 Advanced RISC Machines Ltd.
3-
3+
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
66 the Free Software Foundation; either version 3 of the License, or
77 (at your option) any later version.
8-
8+
99 This program is distributed in the hope that it will be useful,
1010 but WITHOUT ANY WARRANTY; without even the implied warranty of
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
13-
13+
1414 You should have received a copy of the GNU General Public License
1515 along with this program; if not, see <http://www.gnu.org/licenses/>. */
1616
--- a/sim/arm/main.c
+++ b/sim/arm/main.c
@@ -1,16 +1,16 @@
11 /* main.c -- top level of ARMulator: ARM6 Instruction Emulator.
22 Copyright (C) 1994 Advanced RISC Machines Ltd.
3-
3+
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
66 the Free Software Foundation; either version 3 of the License, or
77 (at your option) any later version.
8-
8+
99 This program is distributed in the hope that it will be useful,
1010 but WITHOUT ANY WARRANTY; without even the implied warranty of
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
13-
13+
1414 You should have received a copy of the GNU General Public License
1515 along with this program; if not, see <http://www.gnu.org/licenses/>. */
1616
--- a/sim/arm/maverick.c
+++ b/sim/arm/maverick.c
@@ -1,7 +1,7 @@
11 /* maverick.c -- Cirrus/DSP co-processor interface.
22 Copyright (C) 2003-2015 Free Software Foundation, Inc.
33 Contributed by Aldy Hernandez (aldyh@redhat.com).
4-
4+
55 This program is free software; you can redistribute it and/or modify
66 it under the terms of the GNU General Public License as published by
77 the Free Software Foundation; either version 3 of the License, or
@@ -47,7 +47,7 @@ struct maverick_regs
4747 int i;
4848 float f;
4949 } upper;
50-
50+
5151 union
5252 {
5353 int i;
@@ -93,7 +93,7 @@ cirrus_not_implemented (char * insn)
9393 {
9494 fprintf (stderr, "Cirrus instruction '%s' not implemented.\n", insn);
9595 fprintf (stderr, "aborting!\n");
96-
96+
9797 exit (1);
9898 }
9999
@@ -110,19 +110,19 @@ DSPMRC4 (ARMul_State * state ATTRIBUTE_UNUSED,
110110 printfdbg ("cfmvrdl\n");
111111 printfdbg ("\tlower half=0x%x\n", DSPregs[SRC1_REG].lower.i);
112112 printfdbg ("\tentire thing=%g\n", mv_getRegDouble (SRC1_REG));
113-
113+
114114 *value = (ARMword) DSPregs[SRC1_REG].lower.i;
115115 break;
116-
116+
117117 case 1: /* cfmvrdh */
118118 /* Move upper half of a DF stored in a DSP reg into an Arm reg. */
119119 printfdbg ("cfmvrdh\n");
120120 printfdbg ("\tupper half=0x%x\n", DSPregs[SRC1_REG].upper.i);
121121 printfdbg ("\tentire thing=%g\n", mv_getRegDouble (SRC1_REG));
122-
122+
123123 *value = (ARMword) DSPregs[SRC1_REG].upper.i;
124124 break;
125-
125+
126126 case 2: /* cfmvrs */
127127 /* Move SF from upper half of a DSP register to an Arm register. */
128128 *value = (ARMword) DSPregs[SRC1_REG].upper.i;
@@ -130,7 +130,7 @@ DSPMRC4 (ARMul_State * state ATTRIBUTE_UNUSED,
130130 SRC1_REG,
131131 DSPregs[SRC1_REG].upper.f);
132132 break;
133-
133+
134134 #ifdef doesnt_work
135135 case 4: /* cfcmps */
136136 {
@@ -150,7 +150,7 @@ DSPMRC4 (ARMul_State * state ATTRIBUTE_UNUSED,
150150 *value = (n << 31) | (z << 30) | (c << 29) | (v << 28);
151151 break;
152152 }
153-
153+
154154 case 5: /* cfcmpd */
155155 {
156156 double a, b;
@@ -177,7 +177,7 @@ DSPMRC4 (ARMul_State * state ATTRIBUTE_UNUSED,
177177
178178 a = DSPregs[SRC1_REG].upper.f;
179179 b = DSPregs[SRC2_REG].upper.f;
180-
180+
181181 printfdbg ("cfcmps\n");
182182 printfdbg ("\tcomparing %f and %f\n", a, b);
183183
@@ -197,10 +197,10 @@ DSPMRC4 (ARMul_State * state ATTRIBUTE_UNUSED,
197197
198198 a = mv_getRegDouble (SRC1_REG);
199199 b = mv_getRegDouble (SRC2_REG);
200-
200+
201201 printfdbg ("cfcmpd\n");
202202 printfdbg ("\tcomparing %g and %g\n", a, b);
203-
203+
204204 z = a == b; /* zero */
205205 n = a < b; /* negative */
206206 c = a > b; /* carry */
@@ -233,13 +233,13 @@ DSPMRC5 (ARMul_State * state ATTRIBUTE_UNUSED,
233233 DEST_REG,
234234 (int) *value);
235235 break;
236-
236+
237237 case 1: /* cfmvr64h */
238238 /* Move upper half of 64bit int from Cirrus to Arm. */
239239 *value = (ARMword) DSPregs[SRC1_REG].upper.i;
240240 printfdbg ("cfmvr64h <-- %d\n", (int) *value);
241241 break;
242-
242+
243243 case 4: /* cfcmp32 */
244244 {
245245 int res;
@@ -270,7 +270,7 @@ DSPMRC5 (ARMul_State * state ATTRIBUTE_UNUSED,
270270 *value = (n << 31) | (z << 30) | (c << 29) | (v << 28);
271271 break;
272272 }
273-
273+
274274 case 5: /* cfcmp64 */
275275 {
276276 long long res;
@@ -302,7 +302,7 @@ DSPMRC5 (ARMul_State * state ATTRIBUTE_UNUSED,
302302 *value = (n << 31) | (z << 30) | (c << 29) | (v << 28);
303303 break;
304304 }
305-
305+
306306 default:
307307 fprintf (stderr, "unknown opcode in DSPMRC5 0x%x\n", instr);
308308 cirrus_not_implemented ("unknown");
@@ -323,27 +323,27 @@ DSPMRC6 (ARMul_State * state ATTRIBUTE_UNUSED,
323323 case 0: /* cfmval32 */
324324 cirrus_not_implemented ("cfmval32");
325325 break;
326-
326+
327327 case 1: /* cfmvam32 */
328328 cirrus_not_implemented ("cfmvam32");
329329 break;
330-
330+
331331 case 2: /* cfmvah32 */
332332 cirrus_not_implemented ("cfmvah32");
333333 break;
334-
334+
335335 case 3: /* cfmva32 */
336336 cirrus_not_implemented ("cfmva32");
337337 break;
338-
338+
339339 case 4: /* cfmva64 */
340340 cirrus_not_implemented ("cfmva64");
341341 break;
342-
342+
343343 case 5: /* cfmvsc32 */
344344 cirrus_not_implemented ("cfmvsc32");
345345 break;
346-
346+
347347 default:
348348 fprintf (stderr, "unknown opcode in DSPMRC6 0x%x\n", instr);
349349 cirrus_not_implemented ("unknown");
@@ -367,20 +367,20 @@ DSPMCR4 (ARMul_State * state,
367367 printfdbg ("cfmvdlr <-- 0x%x\n", (int) value);
368368 DSPregs[SRC1_REG].lower.i = (int) value;
369369 break;
370-
370+
371371 case 1: /* cfmvdhr */
372372 /* Move the upper half of a DF value from an Arm register into
373373 the upper half of a Cirrus register. */
374374 printfdbg ("cfmvdhr <-- 0x%x\n", (int) value);
375375 DSPregs[SRC1_REG].upper.i = (int) value;
376376 break;
377-
377+
378378 case 2: /* cfmvsr */
379379 /* Move SF from Arm register into upper half of Cirrus register. */
380380 printfdbg ("cfmvsr <-- 0x%x\n", (int) value);
381381 DSPregs[SRC1_REG].upper.i = (int) value;
382382 break;
383-
383+
384384 default:
385385 fprintf (stderr, "unknown opcode in DSPMCR4 0x%x\n", instr);
386386 cirrus_not_implemented ("unknown");
@@ -410,7 +410,7 @@ DSPMCR5 (ARMul_State * state,
410410 printfdbg ("cfmv64lr mvdx%d <-- 0x%x\n", SRC1_REG, (int) value);
411411 DSPregs[SRC1_REG].lower.i = (int) value;
412412 break;
413-
413+
414414 case 1: /* cfmv64hr */
415415 /* Move upper half of a 64bit int from an ARM register into the
416416 upper half of a DSP register. */
@@ -419,7 +419,7 @@ DSPMCR5 (ARMul_State * state,
419419 (int) value);
420420 DSPregs[SRC1_REG].upper.i = (int) value;
421421 break;
422-
422+
423423 case 2: /* cfrshl32 */
424424 printfdbg ("cfrshl32\n");
425425 val.us = value;
@@ -428,7 +428,7 @@ DSPMCR5 (ARMul_State * state,
428428 else
429429 DSPregs[SRC2_REG].lower.i = DSPregs[SRC1_REG].lower.i >> -value;
430430 break;
431-
431+
432432 case 3: /* cfrshl64 */
433433 printfdbg ("cfrshl64\n");
434434 val.us = value;
@@ -437,7 +437,7 @@ DSPMCR5 (ARMul_State * state,
437437 else
438438 mv_setReg64int (SRC2_REG, mv_getReg64int (SRC1_REG) >> -value);
439439 break;
440-
440+
441441 default:
442442 fprintf (stderr, "unknown opcode in DSPMCR5 0x%x\n", instr);
443443 cirrus_not_implemented ("unknown");
@@ -458,27 +458,27 @@ DSPMCR6 (ARMul_State * state,
458458 case 0: /* cfmv32al */
459459 cirrus_not_implemented ("cfmv32al");
460460 break;
461-
461+
462462 case 1: /* cfmv32am */
463463 cirrus_not_implemented ("cfmv32am");
464464 break;
465-
465+
466466 case 2: /* cfmv32ah */
467467 cirrus_not_implemented ("cfmv32ah");
468468 break;
469-
469+
470470 case 3: /* cfmv32a */
471471 cirrus_not_implemented ("cfmv32a");
472472 break;
473-
473+
474474 case 4: /* cfmv64a */
475475 cirrus_not_implemented ("cfmv64a");
476476 break;
477-
477+
478478 case 5: /* cfmv32sc */
479479 cirrus_not_implemented ("cfmv32sc");
480480 break;
481-
481+
482482 default:
483483 fprintf (stderr, "unknown opcode in DSPMCR6 0x%x\n", instr);
484484 cirrus_not_implemented ("unknown");
@@ -501,14 +501,14 @@ DSPLDC4 (ARMul_State * state ATTRIBUTE_UNUSED,
501501 words = 0;
502502 return ARMul_DONE;
503503 }
504-
504+
505505 if (BIT (22))
506506 { /* it's a long access, get two words */
507507 /* cfldrd */
508508
509509 printfdbg ("cfldrd: %x (words = %d) (bigend = %d) DESTREG = %d\n",
510510 data, words, state->bigendSig, DEST_REG);
511-
511+
512512 if (words == 0)
513513 {
514514 if (state->bigendSig)
@@ -523,14 +523,14 @@ DSPLDC4 (ARMul_State * state ATTRIBUTE_UNUSED,
523523 else
524524 DSPregs[DEST_REG].upper.i = (int) data;
525525 }
526-
526+
527527 ++ words;
528-
528+
529529 if (words == 2)
530530 {
531531 printfdbg ("\tmvd%d <-- mem = %g\n", DEST_REG,
532532 mv_getRegDouble (DEST_REG));
533-
533+
534534 return ARMul_DONE;
535535 }
536536 else
@@ -539,7 +539,7 @@ DSPLDC4 (ARMul_State * state ATTRIBUTE_UNUSED,
539539 else
540540 {
541541 /* Get just one word. */
542-
542+
543543 /* cfldrs */
544544 printfdbg ("cfldrs\n");
545545
@@ -565,11 +565,11 @@ DSPLDC5 (ARMul_State * state ATTRIBUTE_UNUSED,
565565 words = 0;
566566 return ARMul_DONE;
567567 }
568-
568+
569569 if (BIT (22))
570570 {
571571 /* It's a long access, get two words. */
572-
572+
573573 /* cfldr64 */
574574 printfdbg ("cfldr64: %d\n", data);
575575
@@ -587,14 +587,14 @@ DSPLDC5 (ARMul_State * state ATTRIBUTE_UNUSED,
587587 else
588588 DSPregs[DEST_REG].upper.i = (int) data;
589589 }
590-
590+
591591 ++ words;
592-
592+
593593 if (words == 2)
594594 {
595595 printfdbg ("\tmvdx%d <-- mem = %lld\n", DEST_REG,
596596 mv_getReg64int (DEST_REG));
597-
597+
598598 return ARMul_DONE;
599599 }
600600 else
@@ -603,10 +603,10 @@ DSPLDC5 (ARMul_State * state ATTRIBUTE_UNUSED,
603603 else
604604 {
605605 /* Get just one word. */
606-
606+
607607 /* cfldr32 */
608608 printfdbg ("cfldr32 mvfx%d <-- %d\n", DEST_REG, (int) data);
609-
609+
610610 /* 32bit ints should be sign extended to 64bits when loaded. */
611611 mv_setReg64int (DEST_REG, (long long) data);
612612
@@ -627,7 +627,7 @@ DSPSTC4 (ARMul_State * state ATTRIBUTE_UNUSED,
627627 words = 0;
628628 return ARMul_DONE;
629629 }
630-
630+
631631 if (BIT (22))
632632 {
633633 /* It's a long access, get two words. */
@@ -648,14 +648,14 @@ DSPSTC4 (ARMul_State * state ATTRIBUTE_UNUSED,
648648 else
649649 *data = (ARMword) DSPregs[DEST_REG].upper.i;
650650 }
651-
651+
652652 ++ words;
653-
653+
654654 if (words == 2)
655655 {
656656 printfdbg ("\tmem = mvd%d = %g\n", DEST_REG,
657657 mv_getRegDouble (DEST_REG));
658-
658+
659659 return ARMul_DONE;
660660 }
661661 else
@@ -687,7 +687,7 @@ DSPSTC5 (ARMul_State * state ATTRIBUTE_UNUSED,
687687 words = 0;
688688 return ARMul_DONE;
689689 }
690-
690+
691691 if (BIT (22))
692692 {
693693 /* It's a long access, store two words. */
@@ -708,14 +708,14 @@ DSPSTC5 (ARMul_State * state ATTRIBUTE_UNUSED,
708708 else
709709 *data = (ARMword) DSPregs[DEST_REG].upper.i;
710710 }
711-
711+
712712 ++ words;
713-
713+
714714 if (words == 2)
715715 {
716716 printfdbg ("\tmem = mvd%d = %lld\n", DEST_REG,
717717 mv_getReg64int (DEST_REG));
718-
718+
719719 return ARMul_DONE;
720720 }
721721 else
@@ -726,7 +726,7 @@ DSPSTC5 (ARMul_State * state ATTRIBUTE_UNUSED,
726726 /* Store just one word. */
727727 /* cfstr32 */
728728 *data = (ARMword) DSPregs[DEST_REG].lower.i;
729-
729+
730730 printfdbg ("cfstr32 MEM = %d\n", (int) *data);
731731
732732 return ARMul_DONE;
@@ -754,7 +754,7 @@ DSPCDP4 (ARMul_State * state,
754754 DSPregs[SRC1_REG].upper.f);
755755 DSPregs[DEST_REG].upper.f = DSPregs[SRC1_REG].upper.f;
756756 break;
757-
757+
758758 case 1: /* cfcpyd */
759759 printfdbg ("cfcpyd mvd%d = mvd%d = %g\n",
760760 DEST_REG,
@@ -762,7 +762,7 @@ DSPCDP4 (ARMul_State * state,
762762 mv_getRegDouble (SRC1_REG));
763763 mv_setRegDouble (DEST_REG, mv_getRegDouble (SRC1_REG));
764764 break;
765-
765+
766766 case 2: /* cfcvtds */
767767 printfdbg ("cfcvtds mvf%d = (float) mvd%d = %f\n",
768768 DEST_REG,
@@ -770,7 +770,7 @@ DSPCDP4 (ARMul_State * state,
770770 (float) mv_getRegDouble (SRC1_REG));
771771 DSPregs[DEST_REG].upper.f = (float) mv_getRegDouble (SRC1_REG);
772772 break;
773-
773+
774774 case 3: /* cfcvtsd */
775775 printfdbg ("cfcvtsd mvd%d = mvf%d = %g\n",
776776 DEST_REG,
@@ -778,7 +778,7 @@ DSPCDP4 (ARMul_State * state,
778778 (double) DSPregs[SRC1_REG].upper.f);
779779 mv_setRegDouble (DEST_REG, (double) DSPregs[SRC1_REG].upper.f);
780780 break;
781-
781+
782782 case 4: /* cfcvt32s */
783783 printfdbg ("cfcvt32s mvf%d = mvfx%d = %f\n",
784784 DEST_REG,
@@ -786,7 +786,7 @@ DSPCDP4 (ARMul_State * state,
786786 (float) DSPregs[SRC1_REG].lower.i);
787787 DSPregs[DEST_REG].upper.f = (float) DSPregs[SRC1_REG].lower.i;
788788 break;
789-
789+
790790 case 5: /* cfcvt32d */
791791 printfdbg ("cfcvt32d mvd%d = mvfx%d = %g\n",
792792 DEST_REG,
@@ -794,7 +794,7 @@ DSPCDP4 (ARMul_State * state,
794794 (double) DSPregs[SRC1_REG].lower.i);
795795 mv_setRegDouble (DEST_REG, (double) DSPregs[SRC1_REG].lower.i);
796796 break;
797-
797+
798798 case 6: /* cfcvt64s */
799799 printfdbg ("cfcvt64s mvf%d = mvdx%d = %f\n",
800800 DEST_REG,
@@ -802,7 +802,7 @@ DSPCDP4 (ARMul_State * state,
802802 (float) mv_getReg64int (SRC1_REG));
803803 DSPregs[DEST_REG].upper.f = (float) mv_getReg64int (SRC1_REG);
804804 break;
805-
805+
806806 case 7: /* cfcvt64d */
807807 printfdbg ("cfcvt64d mvd%d = mvdx%d = %g\n",
808808 DEST_REG,
@@ -821,11 +821,11 @@ DSPCDP4 (ARMul_State * state,
821821 DEST_REG,
822822 SRC1_REG,
823823 DSPregs[SRC1_REG].upper.f * DSPregs[SRC2_REG].upper.f);
824-
824+
825825 DSPregs[DEST_REG].upper.f = DSPregs[SRC1_REG].upper.f
826826 * DSPregs[SRC2_REG].upper.f;
827827 break;
828-
828+
829829 case 1: /* cfmuld */
830830 printfdbg ("cfmuld mvd%d = mvd%d = %g\n",
831831 DEST_REG,
@@ -836,7 +836,7 @@ DSPCDP4 (ARMul_State * state,
836836 mv_getRegDouble (SRC1_REG)
837837 * mv_getRegDouble (SRC2_REG));
838838 break;
839-
839+
840840 default:
841841 fprintf (stderr, "unknown opcode in DSPCDP4 0x%x\n", instr);
842842 cirrus_not_implemented ("unknown");
@@ -856,7 +856,7 @@ DSPCDP4 (ARMul_State * state,
856856 SRC1_REG,
857857 DSPregs[DEST_REG].upper.f);
858858 break;
859-
859+
860860 case 1: /* cfabsd */
861861 mv_setRegDouble (DEST_REG,
862862 (mv_getRegDouble (SRC1_REG) < 0.0 ?
@@ -867,7 +867,7 @@ DSPCDP4 (ARMul_State * state,
867867 SRC1_REG,
868868 mv_getRegDouble (DEST_REG));
869869 break;
870-
870+
871871 case 2: /* cfnegs */
872872 DSPregs[DEST_REG].upper.f = -DSPregs[SRC1_REG].upper.f;
873873 printfdbg ("cfnegs mvf%d = -mvf%d = %f\n",
@@ -875,7 +875,7 @@ DSPCDP4 (ARMul_State * state,
875875 SRC1_REG,
876876 DSPregs[DEST_REG].upper.f);
877877 break;
878-
878+
879879 case 3: /* cfnegd */
880880 mv_setRegDouble (DEST_REG,
881881 -mv_getRegDouble (SRC1_REG));
@@ -883,7 +883,7 @@ DSPCDP4 (ARMul_State * state,
883883 DEST_REG,
884884 mv_getRegDouble (DEST_REG));
885885 break;
886-
886+
887887 case 4: /* cfadds */
888888 DSPregs[DEST_REG].upper.f = DSPregs[SRC1_REG].upper.f
889889 + DSPregs[SRC2_REG].upper.f;
@@ -893,7 +893,7 @@ DSPCDP4 (ARMul_State * state,
893893 SRC2_REG,
894894 DSPregs[DEST_REG].upper.f);
895895 break;
896-
896+
897897 case 5: /* cfaddd */
898898 mv_setRegDouble (DEST_REG,
899899 mv_getRegDouble (SRC1_REG)
@@ -904,7 +904,7 @@ DSPCDP4 (ARMul_State * state,
904904 SRC2_REG,
905905 mv_getRegDouble (DEST_REG));
906906 break;
907-
907+
908908 case 6: /* cfsubs */
909909 DSPregs[DEST_REG].upper.f = DSPregs[SRC1_REG].upper.f
910910 - DSPregs[SRC2_REG].upper.f;
@@ -914,7 +914,7 @@ DSPCDP4 (ARMul_State * state,
914914 SRC2_REG,
915915 DSPregs[DEST_REG].upper.f);
916916 break;
917-
917+
918918 case 7: /* cfsubd */
919919 mv_setRegDouble (DEST_REG,
920920 mv_getRegDouble (SRC1_REG)
@@ -978,7 +978,7 @@ DSPCDP5 (ARMul_State * state,
978978 SRC2_REG,
979979 DSPregs[DEST_REG].lower.i);
980980 break;
981-
981+
982982 case 1: /* cfmul64 */
983983 mv_setReg64int (DEST_REG,
984984 mv_getReg64int (SRC1_REG)
@@ -989,7 +989,7 @@ DSPCDP5 (ARMul_State * state,
989989 SRC2_REG,
990990 mv_getReg64int (DEST_REG));
991991 break;
992-
992+
993993 case 2: /* cfmac32 */
994994 DSPregs[DEST_REG].lower.i
995995 += DSPregs[SRC1_REG].lower.i * DSPregs[SRC2_REG].lower.i;
@@ -999,7 +999,7 @@ DSPCDP5 (ARMul_State * state,
999999 SRC2_REG,
10001000 DSPregs[DEST_REG].lower.i);
10011001 break;
1002-
1002+
10031003 case 3: /* cfmsc32 */
10041004 DSPregs[DEST_REG].lower.i
10051005 -= DSPregs[SRC1_REG].lower.i * DSPregs[SRC2_REG].lower.i;
@@ -1009,7 +1009,7 @@ DSPCDP5 (ARMul_State * state,
10091009 SRC2_REG,
10101010 DSPregs[DEST_REG].lower.i);
10111011 break;
1012-
1012+
10131013 case 4: /* cfcvts32 */
10141014 /* fixme: this should round */
10151015 DSPregs[DEST_REG].lower.i = (int) DSPregs[SRC1_REG].upper.f;
@@ -1018,7 +1018,7 @@ DSPCDP5 (ARMul_State * state,
10181018 SRC1_REG,
10191019 DSPregs[DEST_REG].lower.i);
10201020 break;
1021-
1021+
10221022 case 5: /* cfcvtd32 */
10231023 /* fixme: this should round */
10241024 DSPregs[DEST_REG].lower.i = (int) mv_getRegDouble (SRC1_REG);
@@ -1027,7 +1027,7 @@ DSPCDP5 (ARMul_State * state,
10271027 SRC1_REG,
10281028 DSPregs[DEST_REG].lower.i);
10291029 break;
1030-
1030+
10311031 case 6: /* cftruncs32 */
10321032 DSPregs[DEST_REG].lower.i = (int) DSPregs[SRC1_REG].upper.f;
10331033 printfdbg ("cftruncs32 mvfx%d = mvf%d = %d\n",
@@ -1035,7 +1035,7 @@ DSPCDP5 (ARMul_State * state,
10351035 SRC1_REG,
10361036 DSPregs[DEST_REG].lower.i);
10371037 break;
1038-
1038+
10391039 case 7: /* cftruncd32 */
10401040 DSPregs[DEST_REG].lower.i = (int) mv_getRegDouble (SRC1_REG);
10411041 printfdbg ("cftruncd32 mvfx%d = mvd%d = %d\n",
@@ -1049,7 +1049,7 @@ DSPCDP5 (ARMul_State * state,
10491049 case 2:
10501050 /* cfsh64 */
10511051 printfdbg ("cfsh64\n");
1052-
1052+
10531053 if (shift < 0)
10541054 /* Negative shift is a right shift. */
10551055 mv_setReg64int (DEST_REG,
@@ -1073,7 +1073,7 @@ DSPCDP5 (ARMul_State * state,
10731073 SRC2_REG,
10741074 DSPregs[DEST_REG].lower.i);
10751075 break;
1076-
1076+
10771077 case 1: /* cfabs64 */
10781078 mv_setReg64int (DEST_REG,
10791079 (mv_getReg64int (SRC1_REG) < 0
@@ -1085,7 +1085,7 @@ DSPCDP5 (ARMul_State * state,
10851085 SRC2_REG,
10861086 mv_getReg64int (DEST_REG));
10871087 break;
1088-
1088+
10891089 case 2: /* cfneg32 */
10901090 DSPregs[DEST_REG].lower.i = -DSPregs[SRC1_REG].lower.i;
10911091 printfdbg ("cfneg32 mvfx%d = -mvfx%d = %d\n",
@@ -1094,7 +1094,7 @@ DSPCDP5 (ARMul_State * state,
10941094 SRC2_REG,
10951095 DSPregs[DEST_REG].lower.i);
10961096 break;
1097-
1097+
10981098 case 3: /* cfneg64 */
10991099 mv_setReg64int (DEST_REG, -mv_getReg64int (SRC1_REG));
11001100 printfdbg ("cfneg64 mvdx%d = -mvdx%d = %lld\n",
@@ -1103,7 +1103,7 @@ DSPCDP5 (ARMul_State * state,
11031103 SRC2_REG,
11041104 mv_getReg64int (DEST_REG));
11051105 break;
1106-
1106+
11071107 case 4: /* cfadd32 */
11081108 DSPregs[DEST_REG].lower.i = DSPregs[SRC1_REG].lower.i
11091109 + DSPregs[SRC2_REG].lower.i;
@@ -1113,7 +1113,7 @@ DSPCDP5 (ARMul_State * state,
11131113 SRC2_REG,
11141114 DSPregs[DEST_REG].lower.i);
11151115 break;
1116-
1116+
11171117 case 5: /* cfadd64 */
11181118 mv_setReg64int (DEST_REG,
11191119 mv_getReg64int (SRC1_REG)
@@ -1124,7 +1124,7 @@ DSPCDP5 (ARMul_State * state,
11241124 SRC2_REG,
11251125 mv_getReg64int (DEST_REG));
11261126 break;
1127-
1127+
11281128 case 6: /* cfsub32 */
11291129 DSPregs[DEST_REG].lower.i = DSPregs[SRC1_REG].lower.i
11301130 - DSPregs[SRC2_REG].lower.i;
@@ -1134,7 +1134,7 @@ DSPCDP5 (ARMul_State * state,
11341134 SRC2_REG,
11351135 DSPregs[DEST_REG].lower.i);
11361136 break;
1137-
1137+
11381138 case 7: /* cfsub64 */
11391139 mv_setReg64int (DEST_REG,
11401140 mv_getReg64int (SRC1_REG)
@@ -1168,17 +1168,17 @@ DSPCDP6 (ARMul_State * state,
11681168 /* cfmadd32 */
11691169 cirrus_not_implemented ("cfmadd32");
11701170 break;
1171-
1171+
11721172 case 1:
11731173 /* cfmsub32 */
11741174 cirrus_not_implemented ("cfmsub32");
11751175 break;
1176-
1176+
11771177 case 2:
11781178 /* cfmadda32 */
11791179 cirrus_not_implemented ("cfmadda32");
11801180 break;
1181-
1181+
11821182 case 3:
11831183 /* cfmsuba32 */
11841184 cirrus_not_implemented ("cfmsuba32");
--- a/sim/arm/parent.c
+++ b/sim/arm/parent.c
@@ -1,16 +1,16 @@
11 /* parent.c -- ARMulator RDP comms code: ARM6 Instruction Emulator.
22 Copyright (C) 1994 Advanced RISC Machines Ltd.
3-
3+
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
66 the Free Software Foundation; either version 3 of the License, or
77 (at your option) any later version.
8-
8+
99 This program is distributed in the hope that it will be useful,
1010 but WITHOUT ANY WARRANTY; without even the implied warranty of
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
13-
13+
1414 You should have received a copy of the GNU General Public License
1515 along with this program; if not, see <http://www.gnu.org/licenses/>. */
1616
@@ -102,7 +102,7 @@ panic_error:
102102 fprintf (stderr, "->debugger\n");
103103 #endif
104104
105- /* Inside this rather large if statement with simply pass on a complete
105+ /* Inside this rather large if statement with simply pass on a complete
106106 message to the ARMulator. The reason we need to pass messages on one
107107 at a time is that we have to know whether the message is an OSOpReply
108108 or an info(stop), so that we can take different action in those
--- a/sim/arm/thumbemu.c
+++ b/sim/arm/thumbemu.c
@@ -137,7 +137,7 @@ ThumbExpandImm (ARMword tinstr)
137137 else
138138 {
139139 int ror = tBITS (7, 11);
140-
140+
141141 val = (1 << 7) | tBITS (0, 6);
142142 val = (val >> ror) | (val << (32 - ror));
143143 }
@@ -207,7 +207,7 @@ handle_T2_insn (ARMul_State * state,
207207 simm32 |= (-1 << 20);
208208 break;
209209 }
210-
210+
211211 case 1: /* B.W */
212212 {
213213 ARMword imm10 = tBITS (0, 9);
@@ -220,7 +220,7 @@ handle_T2_insn (ARMul_State * state,
220220 simm32 |= (-1 << 24);
221221 break;
222222 }
223-
223+
224224 case 2: /* BLX <label> */
225225 {
226226 ARMword imm10h = tBITS (0, 9);
@@ -258,7 +258,7 @@ handle_T2_insn (ARMul_State * state,
258258 fprintf (stderr, " pc changed to %x\n", state->Reg[15]);
259259 return;
260260 }
261-
261+
262262 switch (tBITS (5,12))
263263 {
264264 case 0x29: // TST<c>.W <Rn>,<Rm>{,<shift>}
@@ -400,7 +400,7 @@ handle_T2_insn (ARMul_State * state,
400400 break;
401401 }
402402
403- case 0x50:
403+ case 0x50:
404404 {
405405 ARMword Rd = ntBITS (8, 11);
406406 ARMword Rn = tBITS (0, 3);
@@ -436,7 +436,7 @@ handle_T2_insn (ARMul_State * state,
436436 * pvalid = t_decoded;
437437 break;
438438 }
439-
439+
440440 case 0x51: // BIC{S}<c>.W <Rd>,<Rn>,<Rm>{,<shift>}
441441 {
442442 ARMword Rn = tBITS (0, 3);
@@ -458,8 +458,8 @@ handle_T2_insn (ARMul_State * state,
458458 * pvalid = t_decoded;
459459 break;
460460 }
461-
462- case 0x52:
461+
462+ case 0x52:
463463 {
464464 ARMword Rn = tBITS (0, 3);
465465 ARMword Rd = ntBITS (8, 11);
@@ -539,7 +539,7 @@ handle_T2_insn (ARMul_State * state,
539539 break;
540540 }
541541
542- case 0x54:
542+ case 0x54:
543543 {
544544 ARMword Rn = tBITS (0, 3);
545545 ARMword Rd = ntBITS (8, 11);
@@ -611,7 +611,7 @@ handle_T2_insn (ARMul_State * state,
611611 * ainstr |= ntBITS (0, 3); // Rm
612612 * pvalid = t_decoded;
613613 break;
614-
614+
615615 case 0x5B: // SBC{S}<c>.W <Rd>,<Rn>,<Rm>{,<shift>}
616616 {
617617 ARMword Rn = tBITS (0, 3);
@@ -636,7 +636,7 @@ handle_T2_insn (ARMul_State * state,
636636 * pvalid = t_decoded;
637637 break;
638638 }
639-
639+
640640 case 0x5E: // RSB{S}<c> <Rd>,<Rn>,<Rm>{,<shift>}
641641 case 0x5D: // SUB{S}<c>.W <Rd>,<Rn>,<Rm>{,<shift>}
642642 {
@@ -669,13 +669,13 @@ handle_T2_insn (ARMul_State * state,
669669 * pvalid = t_decoded;
670670 break;
671671 }
672-
672+
673673 case 0x9D: // NOP.W
674674 tASSERT (tBITS (0, 15) == 0xF3AF);
675675 tASSERT (ntBITS (0, 15) == 0x8000);
676676 * pvalid = t_branch;
677677 break;
678-
678+
679679 case 0x80: // AND
680680 case 0xA0: // TST
681681 {
@@ -697,7 +697,7 @@ handle_T2_insn (ARMul_State * state,
697697 {
698698 // AND{S}<c> <Rd>,<Rn>,#<const>
699699 if (in_IT_block ())
700- S = 0;
700+ S = 0;
701701
702702 state->Reg[Rd] = val;
703703 }
@@ -726,7 +726,7 @@ handle_T2_insn (ARMul_State * state,
726726 * pvalid = t_resolved;
727727 break;
728728 }
729-
729+
730730 case 0xA2:
731731 case 0x82: // MOV{S}<c>.W <Rd>,#<const>
732732 {
@@ -783,13 +783,13 @@ handle_T2_insn (ARMul_State * state,
783783 if (in_IT_block ())
784784 S = 0;
785785 }
786-
786+
787787 if (S)
788788 ARMul_NegZero (state, result);
789789 * pvalid = t_resolved;
790790 break;
791791 }
792-
792+
793793 case 0xA8: // CMN
794794 case 0x88: // ADD
795795 {
@@ -838,7 +838,7 @@ handle_T2_insn (ARMul_State * state,
838838 break;
839839 }
840840
841- case 0xAA:
841+ case 0xAA:
842842 case 0x8A: // ADC{S}<c> <Rd>,<Rn>,#<const>
843843 {
844844 ARMword Rn = tBITS (0, 3);
@@ -879,7 +879,7 @@ handle_T2_insn (ARMul_State * state,
879879 * pvalid = t_branch;
880880 break;
881881 }
882-
882+
883883 case 0xAB:
884884 case 0x8B: // SBC{S}<c> <Rd>,<Rn>,#<const>
885885 {
@@ -940,7 +940,7 @@ handle_T2_insn (ARMul_State * state,
940940 }
941941 else
942942 {
943- // SUB{S}<c>.W <Rd>,<Rn>,#<const>
943+ // SUB{S}<c>.W <Rd>,<Rn>,#<const>
944944 if (in_IT_block ())
945945 S = 0;
946946
@@ -997,7 +997,7 @@ handle_T2_insn (ARMul_State * state,
997997 CLEARV;
998998 }
999999 }
1000-
1000+
10011001 * pvalid = t_branch;
10021002 break;
10031003 }
@@ -1038,7 +1038,7 @@ handle_T2_insn (ARMul_State * state,
10381038
10391039 tASSERT (tBIT (4) == 0);
10401040 tASSERT (ntBIT (15) == 0);
1041-
1041+
10421042 /* Note the ARM ARM indicates special cases for Rn == 15 (ADR)
10431043 and Rn == 13 (SUB SP minus immediate), but these are implemented
10441044 in exactly the same way as the normal SUBW insn. */
@@ -1047,7 +1047,7 @@ handle_T2_insn (ARMul_State * state,
10471047 * pvalid = t_resolved;
10481048 break;
10491049 }
1050-
1050+
10511051 case 0xB6:
10521052 case 0x96: // MOVT<c> <Rd>,#<imm16>
10531053 {
@@ -1098,7 +1098,7 @@ handle_T2_insn (ARMul_State * state,
10981098 // BFI<c> <Rd>,<Rn>,#<lsb>,#<width>
10991099 ARMword val = state->Reg[Rn] & (mask >> lsbit);
11001100
1101- val <<= lsbit;
1101+ val <<= lsbit;
11021102 state->Reg[Rd] &= ~ mask;
11031103 state->Reg[Rd] |= val;
11041104 }
@@ -1118,7 +1118,7 @@ handle_T2_insn (ARMul_State * state,
11181118 * ainstr |= tBITS (0, 3); // Rn
11191119 * pvalid = t_decoded;
11201120 break;
1121-
1121+
11221122 case 0xC0: // STRB
11231123 case 0xC4: // LDRB
11241124 {
@@ -1157,7 +1157,7 @@ handle_T2_insn (ARMul_State * state,
11571157
11581158 tASSERT (! (Rt == 15 && P && !U && !W));
11591159 tASSERT (! (P && U && !W));
1160-
1160+
11611161 /* LDRB<c> <Rt>,[<Rn>,#-<imm8>] => 1111 1000 0001 rrrr
11621162 LDRB<c> <Rt>,[<Rn>],#+/-<imm8> => 1111 1000 0001 rrrr
11631163 LDRB<c> <Rt>,[<Rn>,#+/-<imm8>]! => 1111 1000 0001 rrrr */
@@ -1239,7 +1239,7 @@ handle_T2_insn (ARMul_State * state,
12391239 tASSERT (! (P && U && ! W));
12401240 tASSERT (! (!P && U && W && Rn == 13 && imm8 == 4 && ntBIT (11) == 0));
12411241 tASSERT (! (P && !U && W && Rn == 13 && imm8 == 4 && ntBIT (11)));
1242-
1242+
12431243 // LDR<c> <Rt>,[<Rn>,#-<imm8>]
12441244 // LDR<c> <Rt>,[<Rn>],#+/-<imm8>
12451245 // LDR<c> <Rt>,[<Rn>,#+/-<imm8>]!
@@ -1275,7 +1275,7 @@ handle_T2_insn (ARMul_State * state,
12751275
12761276 * ainstr = 0xE92D0000;
12771277 * ainstr |= (1 << Rt);
1278-
1278+
12791279 Rt = Rn = 0;
12801280 }
12811281 else
@@ -1412,7 +1412,7 @@ handle_T2_insn (ARMul_State * state,
14121412 * pvalid = t_branch;
14131413 break;
14141414 }
1415-
1415+
14161416 case 0xC6: // LDR.W/STR.W
14171417 {
14181418 ARMword Rn = tBITS (0, 3);
@@ -1453,7 +1453,7 @@ handle_T2_insn (ARMul_State * state,
14531453 // LDRSB<c> <Rt>,<label>
14541454 ARMword imm12 = ntBITS (0, 11);
14551455 address += (U ? imm12 : - imm12);
1456- }
1456+ }
14571457 else if (U)
14581458 {
14591459 // LDRSB<c> <Rt>,[<Rn>,#<imm12>]
@@ -1494,7 +1494,7 @@ handle_T2_insn (ARMul_State * state,
14941494 * pvalid = t_resolved;
14951495 break;
14961496 }
1497-
1497+
14981498 case 0xC9:
14991499 case 0xCD:// LDRSH
15001500 {
@@ -1548,7 +1548,7 @@ handle_T2_insn (ARMul_State * state,
15481548 break;
15491549 }
15501550
1551- case 0x0D0:
1551+ case 0x0D0:
15521552 {
15531553 ARMword Rm = ntBITS (0, 3);
15541554 ARMword Rd = ntBITS (8, 11);
@@ -1598,7 +1598,7 @@ handle_T2_insn (ARMul_State * state,
15981598 break;
15991599 }
16001600
1601- case 0xD2:
1601+ case 0xD2:
16021602 tASSERT (ntBITS (12, 15) == 15);
16031603 if (ntBIT (7))
16041604 {
@@ -1622,7 +1622,7 @@ handle_T2_insn (ARMul_State * state,
16221622 * ainstr |= (ntBITS (8, 11) << 12); // Rd
16231623 * pvalid = t_decoded;
16241624 break;
1625-
1625+
16261626 case 0xD3: // ROR{S}<c>.W <Rd>,<Rn>,<Rm>
16271627 tASSERT (ntBITS (12, 15) == 15);
16281628 tASSERT (ntBITS (4, 7) == 0);
@@ -1634,7 +1634,7 @@ handle_T2_insn (ARMul_State * state,
16341634 * ainstr |= (tBITS (0, 3) << 0); // Rn
16351635 * pvalid = t_decoded;
16361636 break;
1637-
1637+
16381638 case 0xD4:
16391639 {
16401640 ARMword Rn = tBITS (0, 3);
@@ -1647,9 +1647,9 @@ handle_T2_insn (ARMul_State * state,
16471647 {
16481648 // REV<c>.W <Rd>,<Rm>
16491649 ARMword val = state->Reg[Rm];
1650-
1650+
16511651 tASSERT (Rm == Rn);
1652-
1652+
16531653 state->Reg [Rd] =
16541654 (val >> 24)
16551655 | ((val >> 8) & 0xFF00)
@@ -1741,7 +1741,7 @@ handle_T2_insn (ARMul_State * state,
17411741 if (ntBITS (4, 7) == 1)
17421742 {
17431743 // MLS<c> <Rd>,<Rn>,<Rm>,<Ra>
1744- state->Reg[Rd] = state->Reg[Ra] - (state->Reg[Rn] * state->Reg[Rm]);
1744+ state->Reg[Rd] = state->Reg[Ra] - (state->Reg[Rn] * state->Reg[Rm]);
17451745 }
17461746 else
17471747 {
@@ -1769,7 +1769,7 @@ handle_T2_insn (ARMul_State * state,
17691769 * ainstr |= tBITS (0, 3); // Rn
17701770 * pvalid = t_decoded;
17711771 break;
1772-
1772+
17731773 case 0xDD: // UMULL
17741774 tASSERT (tBIT (4) == 0);
17751775 tASSERT (ntBITS (4, 7) == 0);
@@ -1780,7 +1780,7 @@ handle_T2_insn (ARMul_State * state,
17801780 * ainstr |= tBITS (0, 3); // Rn
17811781 * pvalid = t_decoded;
17821782 break;
1783-
1783+
17841784 case 0xDF: // UMLAL
17851785 tASSERT (tBIT (4) == 0);
17861786 tASSERT (ntBITS (4, 7) == 0);
@@ -1792,7 +1792,7 @@ handle_T2_insn (ARMul_State * state,
17921792 * pvalid = t_decoded;
17931793 break;
17941794
1795- default:
1795+ default:
17961796 fprintf (stderr, "(op = %x) ", tBITS (5,12));
17971797 tASSERT (0);
17981798 return;
@@ -1860,7 +1860,7 @@ handle_v6_thumb_insn (ARMul_State * state,
18601860 state->Reg[Rd] += state->Reg[Rm];
18611861 break;
18621862 }
1863-
1863+
18641864 case 0x4600: // MOV<c> <Rd>,<Rm>
18651865 {
18661866 // instr [15, 8] = 0100 0110
@@ -1916,7 +1916,7 @@ handle_v6_thumb_insn (ARMul_State * state,
19161916 state->Reg [tBITS (0, 2)] = (val >> 16) | (val << 16);
19171917 break;
19181918 }
1919-
1919+
19201920 case 0xb660: /* cpsie */
19211921 case 0xb670: /* cpsid */
19221922 case 0xbac0: /* revsh */
@@ -2017,7 +2017,7 @@ ARMul_ThumbDecode (ARMul_State * state,
20172017
20182018 return t_branch;
20192019 }
2020-
2020+
20212021 old_tinstr = tinstr;
20222022 if (trace)
20232023 fprintf (stderr, "pc: %x, Thumb instr: %x", pc & ~1, tinstr);
@@ -2072,7 +2072,7 @@ ARMul_ThumbDecode (ARMul_State * state,
20722072 * ainstr |= tBITS (8, 10) << 16;
20732073 * ainstr |= tBITS (0, 7);
20742074 break;
2075-
2075+
20762076 case 6:
20772077 case 7:
20782078 * ainstr = tBIT (11)
--- a/sim/arm/wrapper.c
+++ b/sim/arm/wrapper.c
@@ -114,7 +114,7 @@ struct maverick_regs
114114 int i;
115115 float f;
116116 } upper;
117-
117+
118118 union
119119 {
120120 int i;
@@ -664,7 +664,7 @@ sim_fetch_register (SIM_DESC sd ATTRIBUTE_UNUSED,
664664 len -= 4;
665665 memory += 4;
666666 regval = 0;
667- }
667+ }
668668
669669 return length;
670670 }
@@ -710,7 +710,7 @@ sim_target_parse_command_line (int argc, char ** argv)
710710 trace = 1;
711711 continue;
712712 }
713-
713+
714714 if (strcmp (ptr, "-z") == 0)
715715 {
716716 /* Remove this option from the argv array. */
@@ -721,7 +721,7 @@ sim_target_parse_command_line (int argc, char ** argv)
721721 trace_funcs = 1;
722722 continue;
723723 }
724-
724+
725725 if (strcmp (ptr, "-d") == 0)
726726 {
727727 /* Remove this option from the argv array. */
@@ -742,14 +742,14 @@ sim_target_parse_command_line (int argc, char ** argv)
742742 for (arg = i; arg < argc; arg ++)
743743 argv[arg] = argv[arg + 1];
744744 argc --;
745-
745+
746746 ptr = argv[i];
747747 }
748748 else
749749 ptr += sizeof SWI_SWITCH;
750750
751751 swi_mask = 0;
752-
752+
753753 while (* ptr)
754754 {
755755 int i;
@@ -773,7 +773,7 @@ sim_target_parse_command_line (int argc, char ** argv)
773773
774774 if (* ptr != 0)
775775 fprintf (stderr, "Ignoring swi options: %s\n", ptr);
776-
776+
777777 /* Remove this option from the argv array. */
778778 for (arg = i; arg < argc; arg ++)
779779 argv[arg] = argv[arg + 1];
@@ -907,7 +907,6 @@ sim_open (SIM_OPEN_KIND kind,
907907 "Missing argument to -m option\n");
908908 return NULL;
909909 }
910-
911910 }
912911 }
913912