|
1 | 1 | /*
|
2 | 2 | * Milkymist SoC (Software)
|
3 |
| - * Copyright (C) 2007, 2008, 2009, 2010 Sebastien Bourdeauducq |
| 3 | + * Copyright (C) 2007, 2008, 2009, 2010, 2011 Sebastien Bourdeauducq |
4 | 4 | *
|
5 | 5 | * This program is free software: you can redistribute it and/or modify
|
6 | 6 | * it under the terms of the GNU General Public License as published by
|
|
15 | 15 | * along with this program. If not, see <http://www.gnu.org/licenses/>.
|
16 | 16 | */
|
17 | 17 |
|
| 18 | + |
| 19 | +#ifndef __FPVM_SCHEDULERS_H |
| 20 | +#define __FPVM_SCHEDULERS_H |
| 21 | + |
| 22 | +#include <fpvm/fpvm.h> |
| 23 | + |
| 24 | +/* |
| 25 | + * code must be able to hold PFPU_PROGSIZE 32-bit instructions. |
| 26 | + * registers must be able to hold PFPU_REG_COUNT 32-bit values. |
| 27 | + */ |
| 28 | + |
18 | 29 | /*
|
19 | 30 | * Greedy Floating Point Unit Scheduler
|
20 | 31 | * This program takes FPVM code and performs greedy VLIW scheduling
|
|
23 | 34 | * program and takes the first schedulable instruction, without trying to
|
24 | 35 | * optimize the order of instructions.
|
25 | 36 | */
|
26 |
| - |
27 |
| -#ifndef __FPVM_GFPUS_H |
28 |
| -#define __FPVM_GFPUS_H |
29 |
| - |
30 |
| -#include <fpvm/fpvm.h> |
| 37 | +int gfpus_schedule(struct fpvm_fragment *fragment, unsigned int *code, unsigned int *registers); |
31 | 38 |
|
32 | 39 | /*
|
33 |
| - * code must be able to hold PFPU_PROGSIZE 32-bit instructions. |
34 |
| - * registers must be able to hold PFPU_REG_COUNT 32-bit values. |
| 40 | + * Lean New / Lamely Named Floating Point Unit Scheduler |
| 41 | + * A smarter, faster, optimizing scheduler by Werner Almesberger. |
35 | 42 | */
|
| 43 | +int lnfpus_schedule(struct fpvm_fragment *fragment, unsigned int *code, unsigned int *registers); |
36 | 44 |
|
37 |
| -int gfpus_schedule(struct fpvm_fragment *fragment, unsigned int *code, unsigned int *registers); |
| 45 | +#define fpvm_default_schedule lnfpus_schedule |
38 | 46 |
|
39 |
| -#endif /* __FPVM_GFPUS_H */ |
| 47 | +#endif /* __FPVM_SCHEDULERS_H */ |
0 commit comments