OSDN Git Service

Support scheduling for ColdFire V1 and V3 microarchitecture.
[pf3gnuchains/gcc-fork.git] / gcc / config / m68k / m68k.md
index 68053b3..abe363e 100644 (file)
 ;; ::::::::::::::::::::
 
 ;; Processor type.
-(define_attr "cpu" "cf_v2, unknown" (const (symbol_ref "m68k_sched_cpu")))
+(define_attr "cpu" "cfv1, cfv2, cfv3, unknown"
+  (const (symbol_ref "m68k_sched_cpu")))
+
+;; MAC type.
+(define_attr "mac" "no, cf_mac, cf_emac"
+  (const (symbol_ref "m68k_sched_mac")))
 
 ;; Instruction type.
 ;; Basically, an asm pattern.
       return "sleep";
 
     default:
-      if (current_function_pops_args)
+      if (crtl->args.pops_args)
        {
-         operands[0] = GEN_INT (current_function_pops_args);
+         operands[0] = GEN_INT (crtl->args.pops_args);
          return "rtd %0";
        }
       else
   ""
   "#"
   [(set_attr "type" "ib")])
+
+(include "cf.md")