aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/c4x
diff options
context:
space:
mode:
authorSteven Bosscher <stevenb@suse.de>2004-06-07 06:04:14 +0000
committerSteven Bosscher <steven@gcc.gnu.org>2004-06-07 06:04:14 +0000
commite4638a72d8b900cc9557bdeaf719a3e3987cd4c6 (patch)
treedc10c85695f54132e27c5f4be113543c15ac56d8 /gcc/config/c4x
parentb51fa00f4ec185801655336e8d76b584063e69c1 (diff)
downloadgcc-e4638a72d8b900cc9557bdeaf719a3e3987cd4c6.zip
gcc-e4638a72d8b900cc9557bdeaf719a3e3987cd4c6.tar.gz
gcc-e4638a72d8b900cc9557bdeaf719a3e3987cd4c6.tar.bz2
hooks.c (hook_int_void_1): New generic hook.
* hooks.c (hook_int_void_1): New generic hook. * hooks.h (hook_int_void_1): Add prototype. * config/c4x/c4x.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1. * config/c4x/c4x.md: Replace dummies for the old pipeline model with dummies for the new one. From-SVN: r82682
Diffstat (limited to 'gcc/config/c4x')
-rw-r--r--gcc/config/c4x/c4x.c3
-rw-r--r--gcc/config/c4x/c4x.md5
2 files changed, 5 insertions, 3 deletions
diff --git a/gcc/config/c4x/c4x.c b/gcc/config/c4x/c4x.c
index 850bcef..ceaa7df 100644
--- a/gcc/config/c4x/c4x.c
+++ b/gcc/config/c4x/c4x.c
@@ -235,6 +235,9 @@ static rtx c4x_struct_value_rtx (tree, int);
#undef TARGET_SCHED_ADJUST_COST
#define TARGET_SCHED_ADJUST_COST c4x_adjust_cost
+#undef TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE
+#define TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE hook_int_void_1
+
#undef TARGET_ASM_GLOBALIZE_LABEL
#define TARGET_ASM_GLOBALIZE_LABEL c4x_globalize_label
diff --git a/gcc/config/c4x/c4x.md b/gcc/config/c4x/c4x.md
index 1ea954a..3c2d2f8 100644
--- a/gcc/config/c4x/c4x.md
+++ b/gcc/config/c4x/c4x.md
@@ -502,9 +502,8 @@
; Just some dummy definitions. The real work is done in c4x_adjust_cost.
; These are needed so the min/max READY_DELAY is known.
-(define_function_unit "dummy" 1 0 (const_int 0) 1 1)
-(define_function_unit "dummy" 1 0 (const_int 0) 2 1)
-(define_function_unit "dummy" 1 0 (const_int 0) 3 1)
+(define_insn_reservation "any_insn" 1 (const_int 1) "nothing")
+(define_insn_reservation "slowest_insn" 3 (const_int 0) "nothing")
; The attribute setar0 is set to 1 for insns where ar0 is a dst operand.
; Note that the attributes unarycc and binarycc do not apply