diff options
| author | Mike Frysinger <vapier@gentoo.org> | 2011-05-11 20:02:42 +0000 |
|---|---|---|
| committer | Mike Frysinger <vapier@gentoo.org> | 2011-05-11 20:02:42 +0000 |
| commit | 34b47c3828ca8e6d9dcddb2886744fb470e4276c (patch) | |
| tree | c6e8881cf59afd20bc6090bb7a2416c0ec1fd1cd /sim/common/sim-core.c | |
| parent | 1f84b6196ba7218766be02547881a5c2165be3ae (diff) | |
| download | ppe42-binutils-34b47c3828ca8e6d9dcddb2886744fb470e4276c.tar.gz ppe42-binutils-34b47c3828ca8e6d9dcddb2886744fb470e4276c.zip | |
sim: fix func call style (space before paren)
Committed this as obvious:
-foo(...);
+foo (...);
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'sim/common/sim-core.c')
| -rw-r--r-- | sim/common/sim-core.c | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/sim/common/sim-core.c b/sim/common/sim-core.c index d50d98dca9..0ae5d7475b 100644 --- a/sim/common/sim-core.c +++ b/sim/common/sim-core.c @@ -65,7 +65,7 @@ sim_core_install (SIM_DESC sd) static void sim_core_uninstall (SIM_DESC sd) { - sim_core *core = STATE_CORE(sd); + sim_core *core = STATE_CORE (sd); unsigned map; /* blow away any mappings */ for (map = 0; map < nr_maps; map++) { @@ -74,10 +74,10 @@ sim_core_uninstall (SIM_DESC sd) sim_core_mapping *tbd = curr; curr = curr->next; if (tbd->free_buffer != NULL) { - SIM_ASSERT(tbd->buffer != NULL); - free(tbd->free_buffer); + SIM_ASSERT (tbd->buffer != NULL); + free (tbd->free_buffer); } - free(tbd); + free (tbd); } core->common.map[map].first = NULL; } @@ -150,7 +150,7 @@ new_sim_core_mapping (SIM_DESC sd, void *buffer, void *free_buffer) { - sim_core_mapping *new_mapping = ZALLOC(sim_core_mapping); + sim_core_mapping *new_mapping = ZALLOC (sim_core_mapping); /* common */ new_mapping->level = level; new_mapping->space = space; @@ -198,7 +198,7 @@ sim_core_map_attach (SIM_DESC sd, if (nr_bytes == 0) { #if (WITH_DEVICES) - device_error(client, "called on sim_core_map_attach with size zero"); + device_error (client, "called on sim_core_map_attach with size zero"); #endif #if (WITH_HW) sim_hw_abort (sd, client, "called on sim_core_map_attach with size zero"); @@ -209,7 +209,7 @@ sim_core_map_attach (SIM_DESC sd, /* find the insertion point (between last/next) */ next_mapping = access_map->first; last_mapping = &access_map->first; - while(next_mapping != NULL + while (next_mapping != NULL && (next_mapping->level < level || (next_mapping->level == level && next_mapping->bound < addr))) @@ -260,10 +260,10 @@ sim_core_map_attach (SIM_DESC sd, } /* create/insert the new mapping */ - *last_mapping = new_sim_core_mapping(sd, - level, - space, addr, nr_bytes, modulo, - client, buffer, free_buffer); + *last_mapping = new_sim_core_mapping (sd, + level, + space, addr, nr_bytes, modulo, + client, buffer, free_buffer); (*last_mapping)->next = next_mapping; } #endif @@ -289,7 +289,7 @@ sim_core_attach (SIM_DESC sd, #endif void *optional_buffer) { - sim_core *memory = STATE_CORE(sd); + sim_core *memory = STATE_CORE (sd); unsigned map; void *buffer; void *free_buffer; @@ -463,14 +463,14 @@ sim_core_detach (SIM_DESC sd, STATIC_INLINE_SIM_CORE\ (sim_core_mapping *) -sim_core_find_mapping(sim_core_common *core, - unsigned map, - address_word addr, - unsigned nr_bytes, - transfer_type transfer, - int abort, /*either 0 or 1 - hint to inline/-O */ - sim_cpu *cpu, /* abort => cpu != NULL */ - sim_cia cia) +sim_core_find_mapping (sim_core_common *core, + unsigned map, + address_word addr, + unsigned nr_bytes, + transfer_type transfer, + int abort, /*either 0 or 1 - hint to inline/-O */ + sim_cpu *cpu, /* abort => cpu != NULL */ + sim_cia cia) { sim_core_mapping *mapping = core->map[map].first; ASSERT ((addr & (nr_bytes - 1)) == 0); /* must be aligned */ @@ -564,7 +564,7 @@ sim_core_read_buffer (SIM_DESC sd, } #endif ((unsigned_1*)buffer)[count] = - *(unsigned_1*)sim_core_translate(mapping, raddr); + *(unsigned_1*)sim_core_translate (mapping, raddr); count += 1; } return count; @@ -631,7 +631,7 @@ sim_core_write_buffer (SIM_DESC sd, continue; } #endif - *(unsigned_1*)sim_core_translate(mapping, raddr) = + *(unsigned_1*)sim_core_translate (mapping, raddr) = ((unsigned_1*)buffer)[count]; count += 1; } @@ -817,7 +817,7 @@ sim_core_trans_addr (SIM_DESC sd, 0 /*dont-abort*/, NULL, NULL_CIA); if (mapping == NULL) return NULL; - return sim_core_translate(mapping, addr); + return sim_core_translate (mapping, addr); } #endif |

