X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=sim%2Fppc%2Fgen-support.c;h=ed02d7dc75a7733443d282bf1d9708f21ba3333d;hb=5d74254dbfb1b7cc8190276351c487f14dcd81e8;hp=56edec38e5fcae8099949eb3d573df88ff700158;hpb=d0352a18a504a4e7b761f6b3264cf11347d8d056;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/ppc/gen-support.c b/sim/ppc/gen-support.c index 56edec38e5..ed02d7dc75 100644 --- a/sim/ppc/gen-support.c +++ b/sim/ppc/gen-support.c @@ -1,6 +1,6 @@ /* This file is part of the program psim. - Copyright (C) 1994-1995, Andrew Cagney + Copyright 1994, 1995, 2003 Andrew Cagney This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -38,7 +38,7 @@ print_support_function_name(lf *file, int is_function_definition) { if (it_is("internal", function->fields[insn_flags])) { - lf_print_function_type(file, SEMANTIC_FUNCTION_TYPE, "INLINE_SUPPORT", + lf_print_function_type(file, SEMANTIC_FUNCTION_TYPE, "PSIM_INLINE_SUPPORT", (is_function_definition ? "\n" : " ")); print_function_name(file, function->fields[function_name], @@ -52,7 +52,7 @@ print_support_function_name(lf *file, else { lf_print_function_type(file, function->fields[function_type], - "INLINE_SUPPORT", + "PSIM_INLINE_SUPPORT", (is_function_definition ? "\n" : " ")); lf_printf(file, "%s\n(%s)%s", function->fields[function_name], @@ -122,6 +122,10 @@ gen_support_c(insn_table *table, { lf_printf(file, "#include \"cpu.h\"\n"); lf_printf(file, "#include \"idecode.h\"\n"); + lf_printf(file, "#ifdef HAVE_COMMON_FPU\n"); + lf_printf(file, "#include \"sim-inline.h\"\n"); + lf_printf(file, "#include \"sim-fpu.h\"\n"); + lf_printf(file, "#endif\n"); lf_printf(file, "#include \"support.h\"\n"); lf_printf(file, "\n");