projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
117e1e8
)
e1000: make some tables 'const'
author
Blue Swirl
<blauwirbel@gmail.com>
Fri, 14 May 2010 19:32:18 +0000
(19:32 +0000)
committer
Blue Swirl
<blauwirbel@gmail.com>
Fri, 14 May 2010 19:32:18 +0000
(19:32 +0000)
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/e1000.c
patch
|
blob
|
history
diff --git
a/hw/e1000.c
b/hw/e1000.c
index 34cc451cf73b29ec11f099484d8e0219751e2894..96d045d20996ec4aaf5792aa74f3480c406d4ade 100644
(file)
--- a/
hw/e1000.c
+++ b/
hw/e1000.c
@@
-544,8
+544,8
@@
start_xmit(E1000State *s)
static int
receive_filter(E1000State *s, const uint8_t *buf, int size)
{
- static uint8_t bcast[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
- static int mta_shift[] = {4, 3, 2, 0};
+ static
const
uint8_t bcast[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
+ static
const
int mta_shift[] = {4, 3, 2, 0};
uint32_t f, rctl = s->mac_reg[RCTL], ra[2], *rp;
if (is_vlan_packet(s, buf) && vlan_rx_filter_enabled(s)) {