URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 297 |
Rev 384 |
/* Test for proper preparation of the comparison operands for
|
/* Test for proper preparation of the comparison operands for
|
generation of a conditional trap. Produced unrecognizable
|
generation of a conditional trap. Produced unrecognizable
|
rtl on Sparc. */
|
rtl on Sparc. */
|
|
|
struct blah { char *b_data; };
|
struct blah { char *b_data; };
|
|
|
void set_bh_page(struct blah *bh, unsigned long offset)
|
void set_bh_page(struct blah *bh, unsigned long offset)
|
{
|
{
|
if ((1UL << 12 ) <= offset)
|
if ((1UL << 12 ) <= offset)
|
__builtin_trap() ;
|
__builtin_trap() ;
|
bh->b_data = (char *)offset;
|
bh->b_data = (char *)offset;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.