OpenCores
URL https://opencores.org/ocsvn/potato/potato/trunk

Subversion Repositories potato

[/] [potato/] [trunk/] [benchmarks/] [potato.h] - Diff between revs 13 and 22

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 13 Rev 22
Line 73... Line 73...
                        :: [temp] "r" (temp), [shift] "i" (n + 24), [status] "i" (CSR_STATUS)); \
                        :: [temp] "r" (temp), [shift] "i" (n + 24), [status] "i" (CSR_STATUS)); \
        } while(0)
        } while(0)
 
 
#define potato_get_badvaddr(n) \
#define potato_get_badvaddr(n) \
        do { \
        do { \
                register uint32_t temp = 0; \
                register uint32_t __temp = 0; \
                asm volatile ( \
                asm volatile ( \
                        "csrr %[temp], CSR_BADVADDR\n" \
                        "csrr %[temp], %[badvaddr]\n" \
                        : [temp] "=r" (temp)); \
                        : [temp] "=r" (__temp) : [badvaddr] "i" (CSR_BADVADDR)); \
                n = temp; \
                n = __temp; \
        } while(0)
        } while(0)
 
 
#endif
#endif
 
 
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.