1 |
/* |
/* |
2 |
* Copyright (C) 2005-2006 Anders Gavare. All rights reserved. |
* Copyright (C) 2005-2007 Anders Gavare. All rights reserved. |
3 |
* |
* |
4 |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
5 |
* modification, are permitted provided that the following conditions are met: |
* modification, are permitted provided that the following conditions are met: |
25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: generate_head.c,v 1.23 2006/08/11 17:43:30 debug Exp $ |
* $Id: generate_head.c,v 1.30 2007/06/28 13:36:47 debug Exp $ |
29 |
*/ |
*/ |
30 |
|
|
31 |
#include <stdio.h> |
#include <stdio.h> |
143 |
printf("\tcpu->cd.%s.next_ic --;\n", a); |
printf("\tcpu->cd.%s.next_ic --;\n", a); |
144 |
printf("}\n\n"); |
printf("}\n\n"); |
145 |
|
|
146 |
/* Ugly special hacks for Transputer and SH[34]: */ |
/* Ugly special hacks for SH[34]: */ |
147 |
if (strcasecmp(argv[1], "transputer") == 0) { |
if (strcasecmp(argv[1], "sh") == 0) { |
|
printf("static struct %s_instr_call nothing_call = { " |
|
|
"instr(nothing), {0} };\n", a); |
|
|
} else if (strcasecmp(argv[1], "sh") == 0) { |
|
148 |
printf("static struct %s_instr_call nothing_call = { " |
printf("static struct %s_instr_call nothing_call = { " |
149 |
"instr(nothing), {0,0} };\n", a); |
"instr(nothing), {0,0} };\n", a); |
150 |
} else { |
} else { |