Change decode_compound_collector to use std::vector
[deliverable/binutils-gdb.git] / sim / ppc / gen-support.c
index 0f76fe40f090ea3291dfa3ef87e2642d06c62380..85ab497e20e97935c7e5db645d6b43fdc3b11cef 100644 (file)
@@ -1,10 +1,10 @@
 /*  This file is part of the program psim.
 
-    Copyright (C) 1994-1995, Andrew Cagney <cagney@highland.com.au>
+    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
-    the Free Software Foundation; either version 2 of the License, or
+    the Free Software Foundation; either version 3 of the License, or
     (at your option) any later version.
 
     This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
     GNU General Public License for more details.
  
     You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+    along with this program; if not, see <http://www.gnu.org/licenses/>.
  
     */
 
@@ -38,7 +37,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 +51,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],
@@ -85,6 +84,10 @@ gen_support_h(insn_table *table,
   insn_table_traverse_function(table,
                               file, NULL,
                               support_h_function);
+  lf_printf(file, "\n");
+  lf_printf(file, "#if (SUPPORT_INLINE & INCLUDE_MODULE)\n");
+  lf_printf(file, "# include \"support.c\"\n");
+  lf_printf(file, "#endif\n");
 }
 
 static void
@@ -118,6 +121,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");
 
This page took 0.023547 seconds and 4 git commands to generate.