projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00a2e4a
)
only set an approriately sized piece of data. so break where appropriate
author
Ali Saidi
<saidi@eecs.umich.edu>
Tue, 13 Sep 2005 02:53:57 +0000
(22:53 -0400)
committer
Ali Saidi
<saidi@eecs.umich.edu>
Tue, 13 Sep 2005 02:53:57 +0000
(22:53 -0400)
Again... how did this work?
--HG--
extra : convert_revision :
06dcab4ac9f5760c9847d0fa47fea67c4a46544a
dev/ide_ctrl.cc
patch
|
blob
|
history
diff --git
a/dev/ide_ctrl.cc
b/dev/ide_ctrl.cc
index 6aac136a6b1af95abd5347b107a0dda0c7e7225f..9aa3094abbb3f53869d68164de71f4d61b20f675 100644
(file)
--- a/
dev/ide_ctrl.cc
+++ b/
dev/ide_ctrl.cc
@@
-302,8
+302,10
@@
IdeController::writeConfig(int offset, int size, const uint8_t *data)
switch(size) {
case sizeof(uint8_t):
config_regs.data[config_offset] = *data;
+ break;
case sizeof(uint16_t):
*(uint16_t*)&config_regs.data[config_offset] = *(uint16_t*)data;
+ break;
case sizeof(uint32_t):
*(uint32_t*)&config_regs.data[config_offset] = *(uint32_t*)data;
break;