Skip to content

Commit

Permalink
Closing out some final simple changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pruten committed Sep 14, 2015
1 parent 0322e55 commit d26cbef
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 16 deletions.
6 changes: 2 additions & 4 deletions core/ethernet.c
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,6 @@ void nubus_ethernet_destroy_func(uint8_t slotnum)
pthread_mutex_destroy(&ctx->lock);
pthread_mutex_destroy(&ctx->sender_cond_mutex);
pthread_cond_destroy(&ctx->sender_cond);

close(ctx->tap_fd);
}

uint32_t nubus_ethernet_read_func(const uint32_t rawaddr,
Expand All @@ -530,7 +528,7 @@ uint32_t nubus_ethernet_read_func(const uint32_t rawaddr,
else
assert(!"read: bogus size");

slog("ethernet: reading from ram addr 0x%x sz=%u ", addr, size);
// slog("ethernet: reading from ram addr 0x%x sz=%u ", addr, size);

goto done;
}
Expand Down Expand Up @@ -696,7 +694,7 @@ void nubus_ethernet_write_func(const uint32_t rawaddr,
else
assert(!"write: bogus size");

slog("ethernet: writing 0x%x sz=%u to ram addr 0x%x\n", data, size, addr);
// slog("ethernet: writing 0x%x sz=%u to ram addr 0x%x\n", data, size, addr);

goto done;
}
Expand Down
14 changes: 7 additions & 7 deletions core/fpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -502,12 +502,12 @@ static void _fpu_write_ea(uint8_t mr, uint8_t format, floatx80 *f, uint8_t K)

/* Copy the formatted data into *addr */

{
/*{
slog("FPU: fpu_write_ea: addr=0x%08x data=", addr);
for (i=0; i<size; i++)
printf("%02x", ptr[i]);
printf("\n");
}
}*/

for (i=0; i<size; i++) {
lset(addr + i, 1, buf[i]);
Expand Down Expand Up @@ -687,12 +687,12 @@ static _Bool _fpu_read_ea(const uint8_t format, float128 *result)
* Step 2: Load the data from the effective address
*/

slog("raw=0x");
//slog("raw=0x");
if (size <= 4) {
const uint32_t raw = lget(addr, size);
if (shoe.abort)
return 0;
printf("%x ", raw);
//printf("%x ", raw);
switch (format) {
case format_B:
*result = _int8_to_intermediate(raw & 0xff);
Expand Down Expand Up @@ -740,7 +740,7 @@ static _Bool _fpu_read_ea(const uint8_t format, float128 *result)
}

got_data:
printf("\n");
//printf("\n");
return 1;
}

Expand Down Expand Up @@ -2631,10 +2631,10 @@ static void inst_fmath (const uint16_t ext)
}


{
/*{
long double tmp = _float128_to_long_double(fpu->source);
printf("%Lf,fp%u\n", tmp, dest_register);
}
}*/

/* fsincos needs this to know which register to write cos */
fpu->extension_word = ext;
Expand Down
2 changes: 1 addition & 1 deletion gui/Shoebill/shoeAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
for (i=0; i<4; i++) {
[defaults setInteger:640 forKey:[NSString stringWithFormat:@"screenWidth%u", i]];
[defaults setInteger:480 forKey:[NSString stringWithFormat:@"screenHeight%u", i]];
[defaults setInteger:1 forKey:[NSString stringWithFormat:@"screenEnabled%u", i]];
[defaults setInteger:0 forKey:[NSString stringWithFormat:@"screenEnabled%u", i]];
}
[defaults setInteger:1 forKey:@"screenEnabled0"];
}
Expand Down
2 changes: 1 addition & 1 deletion gui/Shoebill/shoeScreenView.m
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ - (void) awakeFromNib
[[NSRunLoop currentRunLoop] addTimer:timer
forMode:NSEventTrackingRunLoopMode];

[[self window] setTitle:[NSString stringWithFormat:@"Shoebill - Screen 1"]];
[[self window] setTitle:[NSString stringWithFormat:@"Shoebill"]];
[[self window] makeKeyAndOrderFront:nil];
}

Expand Down
4 changes: 2 additions & 2 deletions gui/Shoebill/shoeScreenWindow.m
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ - (void) uncaptureMouse
shoeApplication *shoeApp = (shoeApplication*)NSApp;
shoeApp->doCaptureMouse = NO;
CGDisplayShowCursor(0);
[self setTitle:@"Shoebill - Screen 1"];
[self setTitle:@"Shoebill"];
}

- (void) captureMouse
Expand All @@ -113,7 +113,7 @@ - (void) captureMouse
shoeApp->doCaptureMouse = YES;
CGDisplayHideCursor(0);
[self warpToCenter];
[self setTitle:@"Shoebill - Screen 1 (Ctrl-click to escape)"];
[self setTitle:@"Shoebill (Ctrl-click to escape)"];
}


Expand Down
2 changes: 1 addition & 1 deletion sdl-gui/osx_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ $CC -O1 ../core/decoder_gen.c -o decoder_gen
./decoder_gen dis .


cmd="$CC -O3 -ggdb -flto $files sdl.c -framework OpenGL -framework SDL2 -o shoebill"
cmd="$CC -F/Library/Frameworks -O3 -ggdb -flto $files sdl.c -framework OpenGL -framework SDL2 -o shoebill"
echo $cmd
$cmd

0 comments on commit d26cbef

Please sign in to comment.