* config/tc-dvp.c (assemble_vif): Insert cpu type marker before
inserted binary files.
This commit is contained in:
parent
b6f63b41bf
commit
1fb06680cf
2 changed files with 28 additions and 5 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
start-sanitize-sky
|
||||||
|
Fri Feb 27 10:06:59 1998 Doug Evans <devans@canuck.cygnus.com>
|
||||||
|
|
||||||
|
* config/tc-dvp.c (assemble_vif): Insert cpu type marker before
|
||||||
|
inserted binary files.
|
||||||
|
|
||||||
|
end-sanitize-sky
|
||||||
start-sanitize-phase2-m32rx
|
start-sanitize-phase2-m32rx
|
||||||
Wed Feb 25 11:43:45 1998 Doug Evans <devans@canuck.cygnus.com>
|
Wed Feb 25 11:43:45 1998 Doug Evans <devans@canuck.cygnus.com>
|
||||||
|
|
||||||
|
|
|
@ -453,8 +453,8 @@ assemble_vif (str)
|
||||||
frag_align (3, 0, 0);
|
frag_align (3, 0, 0);
|
||||||
record_alignment (now_seg, 3);
|
record_alignment (now_seg, 3);
|
||||||
/* FIXME: The data must be aligned on a 64 bit boundary.
|
/* FIXME: The data must be aligned on a 64 bit boundary.
|
||||||
Not sure how to do this yet so punt by making the mpg insn
|
Not sure how to do this yet, other than by performing relaxing,
|
||||||
8 bytes (vifnop,mpg). */
|
so punt by making the mpg insn 8 bytes (vifnop,mpg). */
|
||||||
f = frag_more (4);
|
f = frag_more (4);
|
||||||
memset (f, 0, 4);
|
memset (f, 0, 4);
|
||||||
}
|
}
|
||||||
|
@ -516,12 +516,28 @@ assemble_vif (str)
|
||||||
vif_get_var_data (&file, &data_len);
|
vif_get_var_data (&file, &data_len);
|
||||||
if (file)
|
if (file)
|
||||||
{
|
{
|
||||||
int byte_len = insert_file (file);
|
int byte_len;
|
||||||
|
|
||||||
|
/* Emit a label to set the mach type for the data we're
|
||||||
|
inserting. */
|
||||||
|
if (opcode->flags & VIF_OPCODE_MPG)
|
||||||
|
record_mach (DVP_VUUP, 1);
|
||||||
|
else if (opcode->flags & VIF_OPCODE_DIRECT)
|
||||||
|
record_mach (DVP_GIF, 1);
|
||||||
|
else if (opcode->flags & VIF_OPCODE_UNPACK)
|
||||||
|
; /* nothing to do */
|
||||||
|
else
|
||||||
|
as_fatal ("unknown cpu type for variable length vif insn");
|
||||||
|
|
||||||
|
byte_len = insert_file (file);
|
||||||
if (output_vif)
|
if (output_vif)
|
||||||
install_vif_length (f, byte_len);
|
install_vif_length (f, byte_len);
|
||||||
|
if (opcode->flags & VIF_OPCODE_MPG)
|
||||||
|
{
|
||||||
/* Update $.MpgLoc. */
|
/* Update $.MpgLoc. */
|
||||||
vif_set_mpgloc (vif_get_mpgloc () + byte_len);
|
vif_set_mpgloc (vif_get_mpgloc () + byte_len);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* data_len == -1 means the value must be computed from
|
/* data_len == -1 means the value must be computed from
|
||||||
|
|
Loading…
Add table
Reference in a new issue