summaryrefslogtreecommitdiffstats
path: root/libcpu
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-12-31 09:12:50 -0800
committerUlrich Drepper <drepper@redhat.com>2008-12-31 09:12:50 -0800
commitb51abc6fc1fbde6d88c8fe02ffa0a93aa57502a4 (patch)
tree9672f50d3092305d4288035d350899c4a348ffe8 /libcpu
parent5bd4444e15b0bda948b3753e01de10ef8999e5c8 (diff)
Mark constant array as const.
Diffstat (limited to 'libcpu')
-rw-r--r--libcpu/ChangeLog2
-rw-r--r--libcpu/i386_disasm.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/libcpu/ChangeLog b/libcpu/ChangeLog
index b26c0aab..90c2e588 100644
--- a/libcpu/ChangeLog
+++ b/libcpu/ChangeLog
@@ -1,5 +1,7 @@
2008-12-31 Ulrich Drepper <drepper@redhat.com>
+ * i386_disasm.c (amd3dnow): Mark as const.
+
* defs/i386: Add blendvpd and blendvps opcodes.
2008-12-30 Ulrich Drepper <drepper@redhat.com>
diff --git a/libcpu/i386_disasm.c b/libcpu/i386_disasm.c
index 5da61705..75936356 100644
--- a/libcpu/i386_disasm.c
+++ b/libcpu/i386_disasm.c
@@ -227,7 +227,7 @@ static const char amd3dnowstr[] =
#define AMD3DNOW_LOW_IDX 0x0d
#define AMD3DNOW_HIGH_IDX (sizeof (amd3dnow) + AMD3DNOW_LOW_IDX - 1)
#define AMD3DNOW_IDX(val) ((val) - AMD3DNOW_LOW_IDX)
-static unsigned char amd3dnow[] =
+static const unsigned char amd3dnow[] =
{
[AMD3DNOW_IDX (0xbf)] = MNE_3DNOW_PAVGUSB,
[AMD3DNOW_IDX (0x9e)] = MNE_3DNOW_PFADD,